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

Getting data in print program but in layout

Former Member
0 Likes
604

Hi All,

I am using getting data into print program work area, but when I am writing the fields in layout , fields does not conatin any data, but when I checked in program before write form ,it contains data.

please help me in this issue.

Regards,

Vinesh

4 REPLIES 4
Read only

Former Member
0 Likes
572

Hi,

make sure you have declared Field as,

<Final internal table name or work area>-<Fieldname>.

eg. MARA-MATNR.

Read only

Former Member
0 Likes
572

Hi,

you have to use the loop ... endloop statement.

Loop at itab.

call function 'WRITE_FORM'

ELEMENT = SPACE

FUNCTION = 'SET'

TYPE = 'BODY'

WINDOW = 'MAIN'.

endloop.

Regards,

Sathis

Read only

0 Likes
572

HI All,

I am using the same as workarea-fieldname syntax , and also only I am having data structure only,not in internal table, so there is no need to looping ..

please help me ...

Regards,

Vinesh

Edited by: Siddivinesh Jogu on Dec 10, 2008 3:18 PM

Read only

0 Likes
572

Hi Vinesh,

We too had a similar problem. So we have tried passing the report name to importing parameter PROGRAM of START_FORM function module and it worked.

You can also try the same.

Regards,

Savitha