Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

smartform

Former Member
0 Likes
989

Hi experts,

i am working on smartform.

the form contains purchase order number in header and below that respective line items.

for one form only one PO number should be there .

then how to get one form for evry new PO number.

could u plz suggest me how to code for this requirement.

regards,

siri.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
950

Loop the ineternal table containing the line items.

Regards

8 REPLIES 8
Read only

Former Member
0 Likes
950

Hi,

In the driver program ( Print program ),

LOOP AT ITAB.

  • CALL the SMARTFORM and pass the data.

ENDLOOP.

Best regards,

Prashant

Read only

0 Likes
950

then if the PO number changes ?

how to get the form for that particular PO num.

regards,

siri.

Read only

Former Member
0 Likes
951

Loop the ineternal table containing the line items.

Regards

Read only

Former Member
0 Likes
950

While looping at itab.

use the

AT NEW fieldname event to check for new PO number.

Read only

Former Member
0 Likes
950

in ME22n/ME21N,for each PO you should create an OUTPUT TYPE like PRINT OUTPUT. then only you can see the output for that PO.

Let me know,if you need any further help in this regard.

Regards

srikanth.

Read only

Former Member
0 Likes
950

in ME22n/ME21N,for each PO you should create an OUTPUT TYPE(like PRINT OUTPUT etc..). then only you can see the output for that PO.

i am not getting why you are talking about multiple PO's in 1 smartform ?

Let me know,if you need any further help in this regard.

Regards

srikanth.

Read only

0 Likes
950

hi srikanth,

could u please tell me how to do this

Header – Purchase Order Number Get EBELN from MSEG where MSEG-MBLNR (material document) = LQUA-WENUM.

Header – Goods Receipt Date LQUA-WDATU

Header – ID Number LQUA-MATNR

Item – Batch Number LQUA-CHARG

Item – Inspection Lot Number LQUA-QPLOS

i have little bit confusion

help me how to do

regards

siri

Read only

Former Member
0 Likes
950

Hi,

For page break you can use "Command", where you can provide the page No also you can use condition.

Regards,

Cili