LSMW - warnings during Batch processing-Field x does not exist in screen y
I have copied and edited an LSMW Project to load JE's - . There are certain fields that are in my Source Fields that are not always needed. When they are not needed, I get a warning message during Batch Processing, for example:
Field BSEG-VBUND does not exist in the screen SAPMF05A 0330 (Trading Partner)
Field COBL-WERKS does not exist in the screen SAPLKACB 0002 (Plant)
These warnings do not stop me from posting the entry, but i have to press enter many times to get through the screens.
I have two questions regarding how to solve this problem:
1. Is there a way to do the batch processing so that it will ignore these types of warnings? i do not want to have to press enter through all the screens. I want to be able to post the batch in one quick step, otherwise it is pointless.
2. Should I be setting a rule or a code in LSMW that would tell the system the field is not needed, or when the field is needed? This seems like it would be very complicated to do. Since the transaction FB01 is making the determination as to which fields are needed (ie: Cash account needs a Value Date) perhaps these rules or codes are already in SAP and i can just copy them into LSMW?
Thank you for any help you can provide.
You need to prepare the values have to be moved to the BatchInput.
Just as you've noted, if a field is empty it means the value has to be space, if a field has slash (/) it means that field has to be ignored.
So your problem is how and where the data have to be prepared.
Probaly the easier solution is to format the file correctly, so to insert "no data" sign in the input file, but that depends on how the file is created.
Other solution is to add abap code in order to set the slash if the value from file is equal to space: here you can create a routine or insert the abap code directly in mapping step:
after assigning the file field to LSMW structure field, if you do a double click on assignement, an abap editor will be open: here you can insert the code you need.