Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BDC for the transaction VA01

0 Kudos
103

Hi,

I have written a BDC program for the transaction VA01 using the session method.The incoming data is in the form of two files - header and detail.Hence, there are two internal tables- one for header and the other for detail. After calling GUI_UPLOAD twice and calling BDC_OPEN_GROUP, I have used one loop for header internal table where the header data enters the BDCDATA internal table and within this loop, I have used a loop for detail internal table where the detail data enters the BDCDATA internal table. Thus, the recording values are split into header and detail.Then, I have called BDC_INSERT. However, when testing the program using a flat file, only the header data enters the database. Also, there is a field MABNR(01) for material number in the BDC recording whose source SAP structure is RV45A. However, the file format requires the source SAP table to be VBRK i.e. the data should enter VBRK table. Please help.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
59

Hi ,

When you create a recording for VA01 data cannot enter table VBRK

Because VBRK IS BILLING table and VBAK is order table for Billing transaction is VF01 .

pLEASE REWARD if useful

3 REPLIES 3

Former Member
0 Kudos
60

Hi ,

When you create a recording for VA01 data cannot enter table VBRK

Because VBRK IS BILLING table and VBAK is order table for Billing transaction is VF01 .

pLEASE REWARD if useful

0 Kudos
59

Thanks for the information, Dinesh.

Now I have another problem.

When I enter Mode of Transport in the header, it does not get copied to the items.

Hence, it shows that the document is incomplete. This happens even when I execute the BDC recording directly using the process button after the recording is created. And hence, this is the case when I execute the BDC program as well. However, in normal cases when we create a Sales order through VA01, if we enter Mode of transport in the header it gets copied to the items and hence, the document is complete.

Please help.

0 Kudos
59

I found a solution to this myself