2007 Jun 07 1:11 PM
Hi friends,
I'm using an include statement in script as follows,
INCLUDE &OBJNAME& OBJECT 'EKPO' ID 'F03' PARAGRAPH IT
which returns material PO text.
How can I check if the text returned by the statement is blank, so that I can display something else in that place.
Thanks & Regards,
Netrey
2007 Jun 07 1:15 PM
Hi Netrey ,
Similar to sy-subrc , in script we use the varaible <b>SAPSCRIPT-SUBRC</b> .
It tells whether the text was included or not.
Here is some portion of the document from sap help.
<i>
The INCLUDE command returns a status code in the SAPSCRIPT-SUBRC symbol:
0: the text include was successful.
1: the command could not be executed because it contained syntax errors.
2: the rules governing the text to be included were not followed (see above).
This value cannot occur if the command is used in a SAPscript form.
4: the specified text could not be found.
</i>
Hope this helps and reward points if helpful.
Regards
Arun
2007 Jun 07 1:15 PM
Hi Netrey ,
Similar to sy-subrc , in script we use the varaible <b>SAPSCRIPT-SUBRC</b> .
It tells whether the text was included or not.
Here is some portion of the document from sap help.
<i>
The INCLUDE command returns a status code in the SAPSCRIPT-SUBRC symbol:
0: the text include was successful.
1: the command could not be executed because it contained syntax errors.
2: the rules governing the text to be included were not followed (see above).
This value cannot occur if the command is used in a SAPscript form.
4: the specified text could not be found.
</i>
Hope this helps and reward points if helpful.
Regards
Arun
2007 Jun 07 1:18 PM
Hi Netry
Check it using debugger
Reward all helpfull answers
Regards
Pavan
2007 Jun 07 1:40 PM
hi
good
write a hard coded break-point after the include statement and then you can check the value of text.
thanks
mrutyun^