I am trying to create special ledger documents using BDC in t code GB01. The same is done by creating a SM35 session. In the program, through GUI_UPLOAD, I am uploading the records. In internal table, each of the records have their own values as desired.
The problem I am facing is that in case there are 3 records in the file, 3 different documents are created which is fine but with all info of the 1st record.
SNO AMT TEXT
1 100 Test1
2 200 Test2
3 300 Test3
Three document 10000, 20000, 30000 are created all having amount as 100 and text as Test1.
The program only creates the session. The upload is done when this session is processed in SM35.
Thanks in advance.