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

sapscript 'include' question

Former Member
0 Likes
1,057

I tried writing the following include in the sapscript but it is still not displaying the corresponding text even though it exists correctly when i check in 'read_text' function module:

INCLUDE &EKPO-ZVBELN& OBJECT VBBK ID Y320 LANGUAGE EN

What could be the error?

Thanks for your input.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,020

Hi

Have you inserted /: for comand line?

Try to check the output format of field EKPO-ZVBELN, perhaps it's without leading zero, so for example your TEXT name is 0000000100, but the SAPSCRIPT is searching it using 100.

Max

7 REPLIES 7
Read only

Former Member
0 Likes
1,021

Hi

Have you inserted /: for comand line?

Try to check the output format of field EKPO-ZVBELN, perhaps it's without leading zero, so for example your TEXT name is 0000000100, but the SAPSCRIPT is searching it using 100.

Max

Read only

Former Member
0 Likes
1,020

make sure the value in the variable EKPO-ZVBELN is exactly same as what you read using READ_TEXT...

Thanks.

Read only

Former Member
0 Likes
1,020

Hi Krishen,

Can you check one thing, does the ZVBELN field have a conversion routine attached to it, i.e. ALPHA. If yes it could be a issue where, you have maintained the name of the standard text i.e. EKPO-ZVBELN as 10. But the EKPO-ZVBELN will hold 00000010 instead since the conversion exit comes into play.

Just check and then try appending the appropriate number of zero(es) if required to the ST name and see.

Regards,

Aditya

Read only

Former Member
0 Likes
1,020

Hi,

Try following:

/: INCLUDE &EKPO-ZVBELN& OBJECT VBBK ID ST

Ashven

Read only

Former Member
0 Likes
1,020

Include command is used to include standard text in a form.the text

should be already defined by using transaction SO10 and NOT to include a field name of a table.

Check this link for more info:

http://sap.niraj.tripod.com/id18.html

Thanks,

Santosh

Read only

Former Member
0 Likes
1,020

Check if the window is wide enough to accomodate the text.

Do a syntax check form->check->texts. Not sure if this is the case and good luck.

Read only

Former Member
0 Likes
1,020

hi

good

debug your sapscript form and check wheather the data for the field ZVBELN is coming from the driver program,if the data is coming from the driver program than check where it is printing into the output.

Thanks

mrutyun^