on 04-21-2008 9:25 AM
Hi,
I am working on a smartform program.I have to print customer PO numbers based on delivery numbers in the o/p.
The delivery numbers are already present in the o/p.All these delivery numbers are getting populated in a field vbeln in a table lit_stages.
So to print the customer PO numbers based on these delivery numbers,I have added the code in LOOP AT lit_stages INTO ls_stages and ENDLOOP.
In the o/p I can see many delivery numbers.But customer PO number is being printed for only first delivery number.Can anyone tell me why this is happening?
Regards,
Hema
well firstly i wud like to ask if u are trying to display the PO numbers and delivery numbers in the same table.
if yes, then u need to make sure that u have both these fields in the same internal table and loop that int table.
if that is not possible u need to make sure u have a LOOP node defined inside the main area of ur already existing table and then display that value.
as always,
pk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In the table node they have used loop at lit_stages into ls_stages.In lit_stages table the delivery numbers are getting populated.So,i have created a text field to print customer PO number field name and in program lines i have given the code to print customer po number under this table node.If again I create a loop node with which internal table should I loop?
Regards,
Hema
Hi, hema
as per my understanding about u r program.
Maintain it in loop.
loop at lit_Stages into ls_Stages.
here write Program lines.
select
into itab --- >new table declare in global defination.
after completion of program lines.
just loop itab. using program lines.
print u r required order.
it will work.
with regards,
kiran.G
as per my concern there will be only two problems.
i suppose the window size is small.
if u r declared in the table plz check that u r multiple line items should be in main area but not in header.
with Regards,
Kiran.G
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.