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

SRM Technical Smartform issue

Former Member
0 Likes
484

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???

2 REPLIES 2
Read only

sharanjee_186716
Product and Topic Expert
Product and Topic Expert
0 Likes
431

Hi Vijay,

In stead of using Split at '#' use split at CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.

i.e. split w_char at CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB into w_var1 w_var2.

Hope this should solve issue.

Thanks,

Gaurav.

Edited by: Gaurav Sharan on May 31, 2011 11:26 AM

Read only

0 Likes
431

TQ