11-30-2007 8:29 AM
Hi Friends,
How to assign a value to a string. Coz I need to compare the strings with the user entered string and process the logic.
Example : p_pass TYPE string p_pass = 'APPLE'.
Regards,
SMP
11-30-2007 8:33 AM
11-30-2007 8:33 AM
11-30-2007 8:34 AM
data p_pass TYPE string value 'APPLE' ,
at selection-screen,
if string co "APPLE".
eooo1 message.
endif.
11-30-2007 8:43 AM
Hi,
I tried this but cannot work, even if it is not apple it is executing the next statement.
Regards,
SMP
11-30-2007 9:05 AM
data : p_pass TYPE string value 'APPLE'.
check the condition as
If tring EQ p_pass.
endif.
11-30-2007 8:51 AM
Hi,
Try like this.
parameters : p_pass TYPE string value 'APPLE'.
at selection-screen on p_pass.
If p_pass co 'APPLE'.
statement
endif.
Regards,
Prashant
11-30-2007 9:05 AM
Hi Prashant,
This is a module pool program. I tried to assign p_pass = 'APPLE'.
System shows no syntax error but value is not capturing in the variable p_pass.
Can you tell me what could the reason.
Regards,
SMP