Skip to Content

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

SRM Technical Smartform issue

Hi,

i have one issue with the srm system. portal side po creation and change and display options are there, so while issuing output(print preview) our z smartform is triggering, the print program is standard sap program. i check the print program the data is retriving from BBP_PD_PO_GETDETAIL FM. in FM there is a tables E_LONGTEXT it will display the line item text in po output.

my main issue is while printing the PO the line item text is concatenating each other.

for example.

text in PO :

test line1

test line 2

output in PO (from portal) :

test line1 #test line2

i write a code to split the thing with # symbol but its not working(in smartform):

sample code:

loop at sf_po-it_longtext ASSIGNING <lfs_longtext>

where guid = wa_item-guid

and tdid = 'ITXT'

and tdspras = sy-langu.

clear v_tdline.

v_tdline = <lfs_longtext>-tdline.

CONCATENATE w_char V_tdline into w_char.

clear v_tdline.

endloop.

do.

clear: w_var1,w_var2.

split w_char at '#' into w_var1 w_var2.

wa_text-lines = w_var1.

append wa_text to t_text.

if w_var2 is initial.

exit.

else.

w_char = w_var2.

endif.

enddo.

when i execute in SE38(ABAP Editor ) its working..

could you pelase give why its not consider the # symbol in split statement???

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