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

help in function module.

Former Member
0 Likes
423

Hi friends,

In the code shown below i used.

Data: abc like 'no error'

and i am using abc in my function module. when i run the program i need to show "no error" in my pop up window. but it is blank .

Any help on this would be appericiated,

Shejal.

if sy-subrc <> 0.

data : abc like 'no error'.

CALL FUNCTION 'POPUP_TO_INFORM'

EXPORTING

titel = abc

txt1 = ''

txt2 = ''

  • TXT3 = ' '

  • TXT4 = ' '

.

endif.

1 ACCEPTED SOLUTION
Read only

suresh_datti
Active Contributor
0 Likes
396

it should be

data: abc(8) value 'no error'.

Regards,

Suresh Datti

3 REPLIES 3
Read only

suresh_datti
Active Contributor
0 Likes
397

it should be

data: abc(8) value 'no error'.

Regards,

Suresh Datti

Read only

0 Likes
396

Thanks Suresh and Ravi,

Problem is solved.

Shejal.

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
396


data : <b>abc(30) type c value  'no error'</b>.



if sy-subrc <> 0.

CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
<b>titel = abc  " It will show on the titlebar
txt1 = abc   " It will show in the box here</b>
* txt2 = ''
* TXT3 = ' '
* TXT4 = ' '
.
endif.

Regards,

Rich Heilman