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

Write IDoc Status



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



Joined: 01 Sep 2007
Posts: 1636

PostPosted: Mon Sep 10, 2007 8:16 pm    Post subject: Write IDoc Status Reply with quote

Code:
FORM write_idoc_status USING p_statxt p_stapa1 p_stapa2 p_stapa3
                             p_stapa4 p_stamno p_stamid
                       CHANGING t_status.
  TABLES: t100.

  CONDENSE p_stapa1 NO-GAPS.
  CONDENSE p_stapa2 NO-GAPS.
  CONDENSE p_stapa3 NO-GAPS.
  CONDENSE p_stapa4 NO-GAPS.

  IF p_statxt IS INITIAL.
    SELECT SINGLE text FROM t100 INTO t_status
                                 WHERE sprsl = 'EN' AND
                                    arbgb = p_stamid AND
                                    msgnr = p_stamno.
  ELSE.
    MOVE p_statxt TO t_status.
  ENDIF.

  IF t_status CS '&1' OR
     t_status CS '&2' OR
     t_status CS '&3' OR
     t_status CS '&4'.

    REPLACE '&1' WITH p_stapa1 INTO t_status.
    REPLACE '&2' WITH p_stapa2 INTO t_status.
    REPLACE '&3' WITH p_stapa3 INTO t_status.
    REPLACE '&4' WITH p_stapa4 INTO t_status.
    CONDENSE t_status.

  ELSE.

    REPLACE '&' WITH p_stapa1 INTO t_status.
    REPLACE '&' WITH p_stapa2 INTO t_status.
    REPLACE '&' WITH p_stapa3 INTO t_status.
    REPLACE '&' WITH p_stapa4 INTO t_status.
    CONDENSE t_status.

  ENDIF.

ENDFORM.                               " WRITE_IDOC_STATUS
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 -> Interfaces | Интерфейсы 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.