on 02-22-2009 3:56 PM
Hi Expart ,
In my MAIN window, I specified a table and under it a LOOP command with the text nodes. My requirment is per page vandor no wise vendor corresponding data display . in my internal table having 7 records but having 3 vendor data . my requirment wise it ll display 3 page according to vendor line item data .
i m using loop putting internal table and put an event on sort beging .data is pick up only 1st vendor data . i want it ll pick up total vendor line item data per vendor no. and display .when vendor no. change it ll going to next page .
Plz. anybody help me . Its Urj.
i'm answering ur question hoping that u have read the rules and follow them from next time.
put a code lines at end of all line items and then suppose ur internal table is itab then do like this.
count1 = count + 1. "where in count u shud put ur current loop index
read table itab1 into wa1 index count1. " itab1 is exact copy of itab.
if wa-vendornumber ne wa1-vendornumber.
flag = 1.
endif.
now in the command node put a condition to trigger the node when flag =1 .
then again at start remember to clear this flag.
кu03B1ятu03B9к
Edited by: kartik tarla on Feb 22, 2009 9:47 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi kartik ,
I writing codeing . i ll showing last value of line item and i ll goes to next page but next page n't showing any vendor corresponding value .
i m sending codeing plz. help me .
internal table define in loop statement .
loop at itab_wtpartner into wa_wtpartner .
wa_wtpartner-wt_qsshh = total_base.
wa_wtpartner-wt_qbshh = total_amount.
append wa_wtpartner to table_sectionc.
count1 = count1 + 1 .
endloop .
value store in new internal table table_sectionc .
within loop i m using table . in table in data tab i m using table_sectionc into wa_wtpartner1 .
then i m writting code .
read table TABLE_SECTIONC into WA_WTPARTNER1 index count1.
if WA_WTPARTNER-lifnr ne WA_WTPARTNER1-lifnr.
flag = 1.
endif.
after footer i m using command line . putting flag = 1 .
then clear flag .
Internal table have 7 record . the o/p showing last item data in 7 times .
Plz. help me .
>
> internal table define in loop statement .
> loop at itab_wtpartner into wa_wtpartner .
> wa_wtpartner-wt_qsshh = total_base.
> wa_wtpartner-wt_qbshh = total_amount.
> append wa_wtpartner to table_sectionc.
> count1 = count1 + 1 .
> endloop .
where have u written this loop.
inside some codelines? u should not have the loop on itab_partner directly, but only thru a table node or loop node.
how r u displaying ur line items, i think the error lies in the way u r displaying the line items so explain in detail how r u processing ur line items,
Hi,
I saw this Thread which has same requirement of mine.
i have loop on vendor and table line (item_details)
Can you explain me how can i get the total qsshb or qsshh fields total to be display in header of form(for each vendor one page)
Please help me as i am struggling to find the exact way.
Hii..
Do u want every venodor data should be printed on different page ?\
If so,
Collect all vendor data into diffetent table,
pass that two tables to form.
in form.
main window.
loop vendor data.
loop that vendor related item data.
print items.
endloop.
COMMOND . with calling new page.
endloop.
follow this.
\
this logic may help you.
Sunil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Total Questions: 6 (6 unresolved)
If u want people to help you then close ur previous questions,
[Read the RULES of forum|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
people tend to ignore the questions from ppl who dont close their threads.
кu03B1ятu03B9к
Edited by: kartik tarla on Feb 24, 2009 10:28 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.