on 08-17-2008 7:13 PM
hi all,
as per the requirement i need to print all the line items of a delievry no.....
iam printing the line items in the main window , now as per the requiremet
before printing the line items of a delivery no,
we need to print delivery no along with the attributes .
like
delivery no 1243 a b c ghi barcode
line item 1
line item2
line item 3
line item 4
delivery no 4567 b barcode
d g khl
line item1
line item2
line item3
to print delievery no , its attributes
along with the bar code , I have designed a window which is placed just above the main window ,
The place where the line items belonging to the first line delivery no stops I need to print the attributes and bar code of the second delivery no in the same format as earlier one with bar code followed by line items , iam not sure where in the main window the line items belonging to the first delivery would stop .
.
Do I need to write code in the main window only which would match the format of window (of delivery item details) for the second delivery no because if i create second window ( matching the format of delivery window) on main window I am not sure where to place it as there are no fixed line items of first delivery no,
It might be a novice question to most but since I am not familair to scripts please guide, please guide
Thanks ,
saurabh
<LOCKED BY MODERATOR - USE APPROPRIATE TITLES>
<MOVED BY MODERATOR TO THE CORRECT FORUM>
Edited by: Alvaro Tejada Galindo on Aug 18, 2008 5:07 PM
Hi Saurabh,
For your requirement you should print both the header and line item information in the main window. You will have to use text elements (/E) for this case. Suppose you have your header info in internal table I_HDR and item info in I_ITM.
In the SAP Script, the main window will look like this:
/E HEADER
/* Put the header info here
/E ITEM
/* Put the item info here
In the driver program you need to put the code as below:
LOOP AT I_HDR.
Call WRITE_FORM for the text element HEADER
LOOP AT I_ITM where DEL_NO = I_HDR-DEL_NO.
Call WRITE_FORM for the text element ITEM.
ENDLOOP.
ENDLOOP.
I hope this resolves your problem.
Regards,
Anurag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.