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: 

in Smartforms need to fetch a field name from the table

Former Member
0 Kudos

There is an already existing layout BBP_PO i have copied it to zz_layout, now i need to get data from the transaction (BBPMAININT) AND THE SAP structure/Table name is BAPIBUS1006_ADDRESS, and the SAP Technical Field Name is HOUSE_NO.

2 REPLIES 2

Former Member
0 Kudos

Hi!

U can get the field from the field in 2 ways:

1)By declaring the structure in the GLOBAL SETTINGS->Form interface and pass the structure name as IMPORT parameter.

If this doesnt work then try

2)U can create the program lines in the window where you want to display the house number.In the program lines you can put your code and select the field from the database table and display it.

Kindly let me know if this helps and revert in case you need more information

Thanks

vs..

Former Member
0 Kudos

Hi,

You can do it in the Forms by first declaring the structure in global defination

gs_BAPIBUS1006_ADDRESS type BAPIBUS1006_ADDRESS.

In the windows where you want to display the House_no in that in the program lines

first select the Data from the table & populate the field HOUSE_NO & same you can pass to the house_no.

Thanks

Rajeev