Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to fields by concatenate function in smartform

Hi all,

I want to fetch the rate of HRB1 or HRC1 (conditional type for Packing & fwd'ing) and display in the form output for each items available for single PO.....

i.e.,in my PO,has 3 diff items with diff Base UOM...

for 1st item:P&F amt is Rs:2000/-, UOM:TO, Qty:10

2nd item amt is Rs:10/- ,UOM:EA ,Qty:5

3rd Item amt is Rs:500/- ,UOM:EA, Qty:1

So i want to display it as

P&F: Rs.200 / TO

Rs:2 / EA

Rs:500 / EA..

and my code(its wrong....some more to change...but i declared to get for a single item 1st)...i've enlcosed below.

***************************************

select meins from ekpo into it_meins where ebeln = zxekko-ebeln.

endselect.

if sy-subrc eq 0.

move it_meins to i_meins.

endif.

select kbetr from konv into it_kbetr where knumv = zxekko-knumv

and kschl = 'HRB1' or kschl = 'HRC1'.

endselect.

if sy-subrc eq 0.

move it_kbetr to i_kbetr.

endif.

concatenate i_kbetr '/' i_meins into g_var1 separated by space.

****************************************************************************

but in output it display only the last item from the PO...but in rates itss giving wrong as"00021028 / EA " like that its giving...

What i've to do to get my result.....

Pls post ur comments in detail.....will reward u once i close this post.

thanks & regards

sankar

Former Member
Not what you were looking for? View more on this topic or Ask a question