on 12-29-2006 10:57 AM
Hiiiiii Experts ,
I have a requirement in which I have to display Mfg. L.no in the footer depending upon the plants displayed in the line item of the main area.
For this I had mentioned program lines as mentioned below
input parameter is Gs_pack
output parameteris gs_item
IF GS_PACK-CHARG+0(1) = 'B'. " Mumbai
GS_ITEM = '(*) Mfg.L.No:Ayur.148 Zandu Pharmaceutical works ltd .,
Mumbai'.
ELSEIF GS_PACK-CHARG+0(1) = 'V'. " Vapi
GS_ITEM = '(%) Mfg.L.No:GA/80 Zandu Pharmaceutical works ltd . ,
Vapi'
.
ELSEIF GS_PACK-CHARG+0(1) = 'I'. " Vaipa
GS_ITEM = '($) Mfg.L.No: GA664 Vaipa Pharmaceutical Pvt ltd . , Vapi'
.
ELSEIF GS_PACK-CHARG+0(1) = 'D'. " Dongri
GS_ITEM = '(@) Mfg.L.No:BD/AYU-7 Zandu Pharmaceutical works ltd .,
Talasari'.
ELSEIF GS_PACK-CHARG+0(1) = 'M'. " Masat
GS_ITEM = '(+) Mfg.L.No:DNH/AYU/10 ZanduPharmaceuticalWorks ltd.,
Silvassa'.
ELSE.
endif.
In the text i have mentioned &gs_item&.
But after executing it displays only theL.no for the last batch no .
I want it to display for all line items included in the main area.
Plz help .
Points guaranteed.
Regards ,
Rupa .
Hi,
if you want to print the footer text for each line item. then place the &gs_item&
in the separate element and call this element in the loop of items table from the driver program.
Regards
Srini.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanx to all for ur response
I have got the solution
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rupa,
Apart from LOOP..ENDLOOP for MAINWINDOW to display all line items, use one more LOOP...ENDLOOP to display Mfg.Lic No for all line items and place your logic inside this second LOOP...ENDLOOP in your driver program.
LOOP AT ITAB.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
WINDOW = 'MAIN'
ELEMENT = 'LINEITEM'.
ENDLOOP.
LOOP AT ITAB.
IF GS_PACK-CHARG+0(1) = 'B'. " Mumbai
GS_ITEM = '(*) Mfg.L.No:Ayur.148 Zandu Pharmaceutical works ltd .,
Mumbai'.
ELSEIF GS_PACK-CHARG+0(1) = 'V'. " Vapi
GS_ITEM = '(%) Mfg.L.No:GA/80 Zandu Pharmaceutical works ltd . ,
Vapi'
.
ELSEIF GS_PACK-CHARG+0(1) = 'I'. " Vaipa
GS_ITEM = '($) Mfg.L.No: GA664 Vaipa Pharmaceutical Pvt ltd . , Vapi'
.
ELSEIF GS_PACK-CHARG+0(1) = 'D'. " Dongri
GS_ITEM = '(@) Mfg.L.No:BD/AYU-7 Zandu Pharmaceutical works ltd .,
Talasari'.
ELSEIF GS_PACK-CHARG+0(1) = 'M'. " Masat
GS_ITEM = '(+) Mfg.L.No:DNH/AYU/10 ZanduPharmaceuticalWorks ltd.,
Silvassa'.
ELSE.
endif.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
WINDOW = 'FOOTER'
ELEMENT = 'FOOTERTEXT'.
ENDLOOP.
Thanks,
Vinay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hiii experts ,
Thanx for ur help .
Actually I want to display License nos in the end i.e at the footer once depending upon the line items displayed . Suppose only one item is pesent in my invoice then License no for that particular batch/ plant shud br displayed in the end.
I do not want a two line item display .
Also I am using a Smartform ,Plz suggest me Where and what code shud i enter so that I will get the desired output.
In this case you have to make use of the events in the smartforms.
Whenever this event is triggered use the command node and give the next page attribute as the 'PAGE' .
The event must be triggered like this Under the DATA tab we have Sort criteria there we can trigger this event. The code you can call it before printing the footer.
And make sure while printing the footer you must check that in the footer attributes check that at Page break check box.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
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.