Application Development 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: 

SMARTFORMS analyze

Former Member
0 Kudos

HI,

Here is the coding that why they used replace 'lv_date_from ' with lv_date_from .

CODE:

replace 'lv_date_from' with lv_date_from into gs_contract-description.

replace 'lv_date_to' with lv_date_to into gs_contract-description.

Thanks in advance.

2 REPLIES 2

Former Member
0 Kudos

llll

\

Former Member
0 Kudos

Hi,

read table lt_text index 1 into ls_text.

gs_contract-description = ls_text-tdline.

read table lt_text index 2 into ls_text.

if sy-subrc = 0.

concatenate gs_contract-description ls_text-tdline

into gs_contract-description

separated by space.

endif.

*change 12345

if lv_date_from = '00.00.0000'.

lv_date_from = ' '.

endif.

*End of 12345

replace 'lv_date_from' with lv_date_from into gs_contract-description.

replace 'lv_date_to' with lv_date_to into gs_contract-description.

// Here is the code for smartform in lt_text is storing the data : Charges For Service Contract Period lv_date_from to lv_date_to.

lv_data_from : 00.00.0000

lv_data_to : 28.09.2008

Output : Charges For Service Contract Period 00.00.0000 to 28.09.2008.

I should get the output as : Charges For Service Contract Period 28.09.2008.

And should supress 00.00.0000 i have done the coding if lv_date_from = '00.00.0000'.

lv_date_from = ' '.

endif.

but here the output is getting : Charges For Service Contract Period 00.00.0000 to 28.09.2008.

to should be supress.

And the output should get :Charges For Service Contract Period 28.09.2008.

pls kindly do favour

thanks,