‎2011 Mar 22 3:57 AM
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
‎2011 Mar 22 4:16 AM
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.
‎2011 Mar 22 4:16 AM
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.
‎2011 Mar 22 5:53 AM
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.
‎2011 Mar 23 3:42 AM
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
‎2011 Mar 24 2:07 AM
‎2011 Mar 22 4:26 AM
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.