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

smartform table main area error

Former Member
0 Likes
640

In global definition, I define IT1 type table of STR1, WA1 type STR1, inition, I select BUKRS from Z1 into IT1

types: begin of STr1

V_bukrs type Z1-BUKRS

end of STR1

in the Table main area, I define a text element , but I manually input &V_BUKRS&, when I test the form, it shows V_bukrs, not the value IN01.

in field list on,

if I double click field name V_bukrs of WA1 , it has no response, I think it should go to my text element definition and becomes grey out, &V_bukrs&.

Any idea, thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
610

Hi Rob,

You can try your code as,

select BUKRS from Z1 into table IT1. 

Then make a loop in your internal table in Table Data area like IT1 into WA1.

In your text element give your field name as

&WA1-V_BUKRS&

.

Hope this will help.

Best regards,

Rosaline.

5 REPLIES 5
Read only

Former Member
0 Likes
611

Hi Rob,

You can try your code as,

select BUKRS from Z1 into table IT1. 

Then make a loop in your internal table in Table Data area like IT1 into WA1.

In your text element give your field name as

&WA1-V_BUKRS&

.

Hope this will help.

Best regards,

Rosaline.

Read only

0 Likes
610

Hi,

still not works. even I manually put &Wa1-V_BUKRS&

besides my first post, I have the following setting:

in main window/table/data, I have loop: operand IT1 in to Wa1, in form interface and form attributes, I defined nothing.

Read only

0 Likes
610

Hi Rob,

I think the problem is with your Global Definitions. You can follow the procedure below. I did some example on it and it works fine.

In Global Definition / Types :


TYPES : BEGIN OF  item ,
                         v_vbeln TYPE vbak-vbeln,
                         ERNAM TYPE vbak-ERNAM,
                         ERDAT TYPE vbak-ERDAT,
                         END OF item.

In Global Definition / Global Data :


ITAB Type Table Of ITEM
WTAB Type ITEM 

In Global Definition / Initializations :

SELECT
       vbeln
       ERNAM
       ERDAT FROM vbak INTO TABLE itab.

In Main Window / Table / Data :

Internal loop : ITAB Into Wtab

Then In a text put field as


&wtab-v_vbeln&

If you are not using parameters then you do not need to use Form Interface.

Hope this helps.

Thanks,

Rosaline.

Edited by: Rosaline. on Mar 23, 2011 4:44 AM

Read only

0 Likes
610

pls don't input manually, use editor!

Read only

madhu_vadlamani
Active Contributor
0 Likes
610

Hi Rob,

Check this.

IT_TAB TYPE TABLE OF TYPES_TABLE

FS_BSET TYPE TYPES_TABLE.

TYPES:

BEGIN OF TYPES_TABLE,

BELNR TYPE BSET-BELNR,

KSCHL TYPE BSET-KSCHL,

HWSTE TYPE BSET-HWSTE,

KBETR TYPE BSET-KBETR,

END OF TYPES_TABLE.

Fields display as wa_rseg-belnr.

Regards,

Madhu.