Posted: Fri Jun 27, 2008 12:55 pm Post subject: F4 help screen
Code:
*PROCESS ON VALUE-REQUEST.
* FIELD KNA1-KTOKD MODULES D100_F4_KTOKD.
FORM f4_ktokd.
DATA: BEGIN OF vtab OCCURS 0,
wert(35) TYPE c,
END OF vtab.
DATA:
dfields LIKE dynpread OCCURS 0 WITH HEADER LINE,
fields LIKE help_value OCCURS 0 WITH HEADER LINE,
ind LIKE sy-tabix,
rc LIKE sy-subrc.
DATA: i_data TYPE TABLE OF kna1.
* Wertetabelle fьllen
SELECT * INTO TABLE i_data FROM kna1
WHERE sperr = ''
ORDER BY ktokd ktost.
LOOP AT i_data.
* .. Kontengruppe, Steuerkz.
vtab-wert+0(4) = i_kna1-ktokd.
vtab-wert+4(1) = i_kna1-ktost.
* .. Text zur Kontengruppe
SELECT SINGLE * FROM kna1t WHERE ktokd = i_data-ktokd
AND ktost = i_data-ktost
AND spras = sy-langu.
IF sy-subrc <> 0. CLEAR kna1t-ktotx. ENDIF.
vtab-wert+5(30) = kna1t-ktotx.
APPEND vtab.
ENDLOOP.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.