cancel
Showing results for 
Search instead for 
Did you mean: 

TABLE DATA in PDF FORM Through ABAP WEBDYNPRO

Former Member
0 Kudos

Hi Friends,

I have to Populate SAP TABLE like MARA,VBRK table into PDF form throught ABAP Webdynpro.

Can you send STEP by STEP Example Doc.

Thanks In Advance.

Gautam.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

To display the Table in the Adobe Form you must create a WebDynpro Context.

In WebDynpro Context, in the main node create another node like A1 with cardinality 0..n and in this node create attributes FIELD1 and FIELD2 and so on.

Now goto method and in that method using code wizard read the node A1.

And use the below code snippet sample in your program, i.e. code this under respective method of the webdynpro.


*Declare the TYPES 
TYPES : BEGIN OF TY_TABLE,
FIELD1 TYPE SOMETYPE,
FIELD2 TYPE SOMETYPE,
END OF TY_TABLE.
 
*Define Internal Table and work area.
DATA : IT_TABLE TYPE STANDARD TABLE OF TY_TABLE INITIAL SIZE 0.
 
SELECT FIELD1 FIELD2 FROM TABLENAME INTO TABLE IT_TABLE.
 
lr_node_info->bind_table( IT_TABLE ).

And now goto Layout and give the TemplateSource and after that it asks for the interface name fill on that and select the relevant context. Now the LiveCycle Designer opens. There goto DataView pallette, there you can see the context of the webdynpro, now you simply drag and drop that table, a table is being created in the Layout Designer.

Regards

Pradeep Goli

Answers (0)