Skip to Content
0
Former Member
Jun 29, 2006 at 04:36 PM

function 'POSTING_INTERFACE_DOCUMENT'

210 Views

Hello,

I'm using this function , and I have got it to work, but what I am now trying to do is add multiple lines and headers to the Internal table FTPOST, being passed into the function.

The way I enter it at the momment is like below and it does not work, how do I match the Headers to the line items, I understand that the headers have a type 'K'

and the line items type'P'. And each has a counter,

Do I increment the line counter for new headers or not, please see how I have doen it, which does not seem to work

1 STYPE COUNT FNAM

P |004 |BSEG-SGTXT

1 K |001 |BKPF-BLDAT

2 K |001 |BKPF-BLART

3 K |001 |BKPF-BUKRS

4 K |001 |BKPF-BUDAT

5 K |001 |BKPF-WAERS

6 K |001 |BKPF-XBLNR

7 K |001 |BKPF-STGRD

8 K |001 |BKPF-STODT

9 K |001 |FS006-DOCID

10 P |001 |RF05A-NEWBS

11 P |001 |BSEG-HKONT

12 P |001 |BSEG-WRBTR

13 P |001 |BSEG-MWSKZ

14 P |001 |BSEG-ZUONR

15 P |001 |BSEG-SGTXT

16 P |001 |BDC_SUBSCR

17 P |001 |DKACB-FMORE

18 P |001 |COBL-KOSTL

19 P |001 |COBL-FIPOS

20 P |001 |COBL-AUFNR

.....

002

..... 003

then for the next header and records

1 K |002 |BKPF-BLART

2 K |002 |BKPF-BUKRS

3 K |003 |BKPF-BUDAT

and line items

11 P |001 |BSEG-HKONT

12 P |001 |BSEG-WRBTR

13 P |001 |BSEG-MWSKZ

I think it is the line items in the second batch whic is causing the confusion.

Thanks

<