Hi All,
We have are trying to set-up the standard function to copy the outbound delivery for STO into an inbound delivery by using the SPED output type.
Issue description:
We have performed all the config for the SPED output set-up as per OSS notes 965176 and 1119073
The access sequences and output determination procedures are set and the requirement type 408 is assigned to the determination procedure as per OSS notes.
We have performed the set-up in VV21/VV22 for the SPED output type and assigned this to the delivery type NLCC.
Upon PGI of the outbound delivery the SPED output is not being triggered. Checking the output determination process in the outbound delivery returns for SPED message 502 output requirement 408 not fulfilled.
After analysis of the code I found out that the following piece of coding in the LV61B408 include (coding behind the requirement type 408) is making that the SPED is not being determined and the 502 error message being returned in the output determination analysis.
If in debug mode I put the plant value in the KOMKBV2-WERKS field the output is being triggered.
Question to the experts:
Can someone tell me how the WERKS (receiving plant code) is filled into the KOMKBV2-WERKS field for the outbound delivery?
I have searched OSS and looked at the different notes that are there and also searched via google and on the SCN website but could not find any information in this regard.
Testing already performed:
I created a condition table for the access sequence that contains the delivery type and also the KOMKBV2-WERKS field and then set-up the output condition SPED using both the delivery type and the plant code.
This did not have any effect to get the SPED condition determined. The debugging also showed that the KOMKBV2-WERKS field was not filled.
I checked the material master data, vendor master data, customer master data and scheduling agreement and don't see anything wrong.
Adding the SPED condition manually to the outbound delivery everything is working correctly and the inbound delivery is being created based on the outbound delivery data.
Thanks in advance for the responses,