cancel
Showing results for 
Search instead for 
Did you mean: 

Need clarification

Former Member
0 Kudos

when i am creating an order with reference to an invoice.

I find the following thing in the internal table XVBAP, CVBAP.

If my order has three line item then in the table XVBAP,CVBAP,

the last item is coming in the header(top and bottom)

eg

30-----

10--

20--

30--

-


30 1161262 10 UNT 22.80

50 1013947 30 UNT 240.00

60 1013948 20 UNT 266.80

70 1013946 20 UNT 117.60

80 1013953 150 UNT 859.50

90 1013952 40 UNT 470.40

100 1013951 10 UNT 179.00

110 1031631 20 UNT 235.20

-


IN THE INTERNAL TABLE(XVBAP,CVBAP)

100 000110 000000000001031631

1 100 000030 000000000001161262

2 100 000050 000000000001013947

3 100 000060 000000000001013948

4 100 000070 000000000001013946

5 100 000080 000000000001013953

6 100 000090 000000000001013952

7 100 000100 000000000001013951

8 100 000110 000000000001031631

-


CAN ANY BODY SUGGEST ME WHY IT IS COMING. LIKE THAT.

Accepted Solutions (0)

Answers (2)

Answers (2)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi,

The first line is the header line, and as the program doesn't do a CLEAR (initialization of header iin the itab), the header is populated with the data of the last command as READ TABLE, APPEND, COLLECT, or the read in a LOOP/ENDLOOP. As it's the last entry, is right think that it comes from a command APPEND itab, ie: APPEND xvbap.

I hope this helps you

Regards

Eduardo

Former Member
0 Kudos

Hi,

For me it looks like these internal tables has a header, that keeps this "doubled" line.

hope it helps.

regards,

wojciech