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

script layout values

Former Member
0 Likes
846

hi to all,

plz help me in this issue,

iam having values in the internal table and using write _form to populate the values, but they r not populating

my internal table is some ex it_int and i used &it_int-sno& like this to populate in the output but it is not happening. and iam giveing same text elements.plz help e in this issue.

this i am using in a alv report program i tried using in separate program then i am getting values.

thanks in advance

kiran kumar

Message was edited by: kiran kumar

Message was edited by: kiran kumar

8 REPLIES 8
Read only

Former Member
0 Likes
819

rite process...

go to debugging mode and check the value in internal table and also debugg the script and try to analys y it is not coming...?

Read only

Former Member
0 Likes
819

Hi kiran,

i think in Program you use <b>it_intand</b> and in script &<b>it_int</b>-sno&?

maybe thats the problem.

regards, Dieter

Read only

Former Member
0 Likes
819

hi kiran ,

in ur <b>driver program</b>

let it be

<b>it_intand</b>

<b> LOOP AT it_intand. "<----


u r error is here ..

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'ZXX'

EXCEPTIONS

OTHERS = 1.

endloop.</b>

in the script

give it as <b>&it_intand-sno&</b>

just maintian this ..

regards,

VIjay

Message was edited by: Vijay

Read only

Former Member
0 Likes
819

hi

good

have you debug your sapscript ? if no than check it and see wheather the value is passing properly from the driver program to your form.

if yes than check the values you r selecting through the select statement and the value you r printing in the sap script form,

the way you have select the value in the select statement should be same with the value that you r printing in your sap script form otherwise it wont print.

thanks

mrutyun^

Read only

0 Likes
819

hi,

help me in this issue.

loop at it_int

call function 'write_form'

--

--

endloop

i am using like this i am seeing values in internal table

it_int but in ouput i am not able to get values.

i am using this in alv report i tried writing in separate program then i am able to get values

thanks in advance

Thanks and regards

kiran kumar

Read only

0 Likes
819

Hi kiran,

can you show thoe whole WRITE_FORM

and the line in SAPSCRIPT.

Have you used the debugger.

Regards, Dieter

Read only

0 Likes
819

hi dieter,

LOOP AT IT_INSTL01.

SELECT SINGLE NETDT FROM ZFI_CUS_DETAILS INTO L_NETDT

WHERE ZSTATEMENTNO EQ IT_INSTL01-ZSTATEMENTNO

AND BELNR EQ IT_INSTL01-DOC_NOS.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = '300'

FUNCTION = 'SET'

TYPE = 'BODY'

WINDOW = 'MAIN'.

ENDLOOP.

iam not getting values in the script output iam having values in internal table.

thanks and regards

kiran kumar

Read only

Former Member
0 Likes
819

Hi kiran ,

just keep ur internal table

both in the driver as well as form with the same name .

if its it_intand in ur driver program

then u will be doing

loop at <b>it_intand</b>.

call function 'WRITE_FORM'.

element = 'ZXXX'

endloop.

so in script it should be

/e ZXXX -->red color text

<b>x</b> | &it_intand-sno&

<b>

x-paragraph format</b>

check 1. form is active .

2.

check whether the element is same what u r passing in the driver program .

3

open form and close form in ur driver program.

regards,

Vijay.