SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Retrieve Absence type text(AWART)



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> HR
View previous topic :: View next topic  
Author Message
admin
Администратор
Администратор



Joined: 01 Sep 2007
Posts: 1639

PostPosted: Sat Oct 13, 2007 1:19 pm    Post subject: Retrieve Absence type text(AWART) Reply with quote

The following code demonstrates how to retrieve the absence type text

Code:
*Retrieve AWART Text
  data: ld_moabw type t001p-moabw,
        ld_atext like t554t-atext.

* Loop at infortype 2001 records
  PROVIDE * FROM p2001 BETWEEN pn-begda AND pn-endda.

*   Retrieve latest infotype 0001 record (similar to select/endselect).
    rp_provide_from_last p0001 space p2001-begda p2001-endda.

*   Retrieve MOABW value
    CLEAR: ld_moabw.
    SELECT SINGLE moabw
      FROM t001p
      INTO ld_moabw
    WHERE werks EQ p0001-werks AND
          btrtl EQ p0001-btrtl.

    SELECT SINGLE atext
      FROM t554t
      INTO ld_atext
     WHERE sprsl EQ sy-langu AND
           moabw EQ ld_moabw AND
         awart EQ p2001-awart.
  ENDPROVIDE.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> HR All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
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.