I have a problem in Business area/assignement fields in Accounting documents.
Actually we have two programs.
program1: get a flat file and uploads into SAP , this is POS inbound program and creates a IDOC of type WPUBON01.
when we check in WPER we can see Billing document and material documents created.
process behind this is: The flat file data is collected into idoc WPUBON01 and posted into application ( all the setting are done).
before posting into application , the plant is considered as business area for accouting document.
i.e; export '<plantname>' to memory id 'MEM1'.
then the IDOC application is posted and when we check WPER we can see Material document and Billing document.
When double click on billing document and go to accounting doc we can see the business area field filled with the plant name.
Program 1 worlks fine.
Program2: This program is same as above but this program has input parameter of folder where all the files are present.
this program gets each file one by one and post into the application and billing document and matreial document created.
but when we double cllcik the billing document and check the acouting document the plant name does not exists in the business area.
The program coding is correct.
do you have any idea.. its aurgent...
The program 2 is same as program 1 the only change is in the input parameter where we give applicaiton server folder and the program get all the files and process each one by one.
The data is posted via IDOCS.
Fill the idoc then there is a FM which post the data into application when we pass the IDOC data.before this the business area is set
Export '<plantname> to memory id 'MEM1'.
for program 1 its working where as for program 2 the WPER returns an error filed business area missing in G/L acount.
I dont understand, I debug 2nd program and every thing is fine.
Please let me know how to pass the busniess area when posting.