Skip to Content
0
Former Member
Nov 13, 2007 at 11:37 AM

HELP REQD ON SMARTFORM - CONCATENATE FUN CTION

10 Views

Hi all...

In the below code.....i'm trying to get the datas from kbetr and meins for each item available in the PO....condition to HRB1 or HRC1...

while checking it where available or not in the debugging process....im getting the datas in the it_out table fields clearly but it isn't transporting it to the G_var1 of concatenate function....and also...its taking the records of the lkast item from the PO and also it display like this

"it_out-kbetr = 00021508/- " but in my PO it has 200/-

"it_out-meins = EA" but in my PO different UOM available for items like KG,TO,EA

Just go thru the below code...and do ur replies clearly....able to fix it. my requirement is or i want to display the output in the form is...(say if my PO has 3 items)

P&F: Rs.200 / TO

Rs:2 / EA

Rs:500 / EA..

FYI...C THE CODE BELOW....

********

data:begin of it_out occurs 0,

ebeln like ekpo-ebeln,

knumv like konv-knumv,

kbetr type d value 2,

kwert type d value 2,

meins type ekpo-meins,

menge type ekpo-menge,

text(25),

end of it_out.

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.

loop at it_out.

*move it_kbetr to i_kbetr.

concatenate i_kbetr '/' i_meins into it_out-text separated by space.

move it_out-text to g_var1.

*refresh it_out.

endloop.

*********

THANKS & REGARDS

SANKAR