cancel
Showing results for 
Search instead for 
Did you mean: 

Footer issue

Former Member
0 Kudos

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 .

Accepted Solutions (1)

Accepted Solutions (1)

srinivas_akiri
Active Participant
0 Kudos

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.

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanx to all for ur response

I have got the solution

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.