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: 

sap script (From Work Area to Sap script window not able to print data)

Former Member
0 Kudos

hi.

have  a look on 'one' image.

i am getting the below error...

---

i create a form through the  Se71

Simply i put one page and  3 Windows.

have a look on  'page window.'  image.

After that i double click on the address and then i enter.

& wa_lfa1-lifnr &

& wa_fla1-name1 &

& wa_fla1-ort01 &

at page window

i double click on the  'address'(window name) and then i click on the text at header level

have a look on 'problem' image.

through the se38  i am calling the  form

but i am not getting the result.

in se38  i think no problem plz have a look on

in dubug mode i put break point

and i checked it

wa_lfa1-lifnr  and other fields are capturing the values i mean getting

dbcount is 1

but in sap -script i am not getting..

--------------------------------------------------------------

i think the problem is at text element..

is it correct way to enter the  variables.

plz suggest me any idea..

1 ACCEPTED SOLUTION

former_member203305
Active Contributor
0 Kudos

Hi.

you are writting the name of the variables with space between the &.

should be sth like this &wa_lfa1-name1& and not separated as you did.

Regards

Miguel

6 REPLIES 6

Private_Member_7726
Active Contributor
0 Kudos

Hi,

As it is now, what you have entered in SapScript Text element (problem.png) are not the variables but text '& wa_lfa1-lifnr &' ... That text is getting printed... I have no idea how to enter variables when using MS Word as Sapscript editor, but to the very least there should be no spaces between & and variable names.

cheers,

Janis

former_member203305
Active Contributor
0 Kudos

Hi.

you are writting the name of the variables with space between the &.

should be sth like this &wa_lfa1-name1& and not separated as you did.

Regards

Miguel

0 Kudos

hi. Right now i am learning Sap script...

my first question. is..

in my script form address one window is there..

on address window  i am double clicking and then i am pressing text element at the toolbar..

my quesiton is  am i entering in currect place....

i seen one video in that video i have seen diff editor for entering the value

&wa_lfa1_lifnr&

plz give me suggestions...

and also i remember

i all ready tried...

&wa_lfa1_lifnr& without spaces..

0 Kudos

Hi Srinvas,

     You have to write the value as shown below.

You have to write your coding in the editor Below.

Regards,

Sindhuja.

0 Kudos

Hi, Sindhuja

Thanks For your reply...

i will check it.

Give me some time..

right now i dont have Environemnt to check it..

i will update u later..

0 Kudos

Thank u very much i got the answer

keep posting..