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 Sales Document

Former Member
0 Kudos

Hi all,

I am new in ABAP. I want to upload the sales document datas from legacy file to SAP database through SHDB recording.can any one help me with sample code and explanation.

Because, my problem is in that VA 01 header data and Item data.In that one sales table contain 2 items in the item field, but some sales order contains varible items like N number of items how can we upload the datas from legacy file to SAP database.hope u all understand.

explain me with code examples.

Thanks and regards

raghul.

3 REPLIES 3

Former Member
0 Kudos

Hi raghul kanna ,

Here r the few steps, which teach u learn a standard recording.

Take one cycle of valid data for creating a sales order. First practise creating sales order by entering the avialble data in sequential manner... Try doing this two three times. And then record the same process in SHDB tcode.

Pertaining to line items. Just u need to add the ok code to scroll the item table control in VA01. In the program u need to add the logic to count the visible rows in the item table control and u need to execute this ok code to scroll down when ever the item count reaches to number of visible rows. Currently I dont have any code with me. Just try doing this.... So u can learn every thing on ur own...

Venkat.

ak_upadhyay
Contributor
0 Kudos

Former Member
0 Kudos

Hi kanna ,

Go to SHDB give the Tcode VA01 and do the Recording by entering the mandatory fields,

Pertaining to line items. check the ok code to scroll the item table control in VA01. In the program u need to apply your Logic based on your item count reaches to number of visible rows. Just Follow this.

Reward If Helpfull,

Naresh.