Application Development and Automation 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: 
Read only

BDC program header and line items

Former Member
0 Likes
614

Hi ,

i am developing new BDC program using transaction FB01,session method SM35.

the file format is :There is a txt file that will be prepared by users in the format shown below.

Document header information is indicated with Record Type ‘H’ in one of the columns.

Document Line items are indicated with Record Type ‘L’ in the same column.

Header Fields: Company Code, Document Date, Document Type, Posting Date, Currency, Reference, Document Header Text. SAP Document no will be created and given by system.

Line Items Fields: Posting Key, Account, Special G/L Indicator, Document Currency Amount, Local Currency Amount, VAT Code, Term Days, Baseline Date, Assignment, Line item text, Profit Center, Cost Center, Internal Order.

Document can have more than 2 line items.

can any one give the example program. and some coding for how to process line item.

Thanks,

Sridhar

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
443

The structure you receive could be adapted to use the following function modules which will build the BDC flow :

POSTING_INTERFACE_START

POSTING_INTERFACE_DOCUMENT

POSTING_INTERFACE_END

Look at those FM documentation, look also at thread like [Thread 1921435 function POSTING_INTERFACE_DOCUMENT |;

Regards

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
444

The structure you receive could be adapted to use the following function modules which will build the BDC flow :

POSTING_INTERFACE_START

POSTING_INTERFACE_DOCUMENT

POSTING_INTERFACE_END

Look at those FM documentation, look also at thread like [Thread 1921435 function POSTING_INTERFACE_DOCUMENT |;

Regards

Read only

0 Likes
443

Hi

We have a requirement like we need to post/upload header and line items stored in 2 different tables to an existing Module pool (consisting of many screens).

Its like the header detal need to be posted on to the Header Screen first and when commited need to post the line details to another DETAIL Screen.

How can this requirement be met using CALL TRANSACTION?

Any pointers regarding the same would be of great help.

Regards

Sukumari