Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8802

Use of BAPI_ALM_ORDER_MAINTAIN

$
0
0

Hi,

 

I am trying to change user status with the use of this BAPI_ALM_ORDER_MAINTAIN. there is no error comes but the status is also not change as well in IW33.

 

below is the code  i am using.

 

perform method using '000001' 'HEADER'        'CHANGE'    '2000002453'."WT_DEL-partner.

  perform method using '000001' 'USERSTATUS'    'CHANGE'    '2000002453'."WT_DEL-partner.

  perform method using '000001' 'PARTNER'      'CHANGE'    '2000002453'."WT_DEL-partner.

  perform method using '000001' ' '            'SAVE'      '2000002453'."WT_DEL-partner.

 

  perform header using '2000002453'.

  perform partner using '2000002453'  'WE' ' '  '2000010983' ' '.

 

  perform userstatus using 'COMM' 'EN' ' ' ' ' '00'.

 

  CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'

*  EXPORTING

*          IV_MMSRV_EXTERNAL_MAINTENACE      =

    TABLES

            IT_METHODS                    = IT_METHOD

            IT_HEADER                        = IT_HEADER

          IT_USERSTATUS                = IT_USERSTATUS

          IT_PARTNER                      = IT_PARTNER

          RETURN                            = IT_RETURN .

 

    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

 

*&---------------------------------------------------------------------*

*&      Form  METHOD

*&---------------------------------------------------------------------*

FORM METHOD  USING    P_1279 P_1280 P_1281 P_1282.

 

  wa_method-REFNUMBER  = P_1279.

  wa_method-OBJECTTYPE  = P_1280.

  wa_method-METHOD      = P_1281.

  wa_method-OBJECTKEY  = P_1282.

  append wa_method to it_method.

  clear wa_method.

 

ENDFORM.                    " METHOD

*&---------------------------------------------------------------------*

*&      Form  PARTNER

*&---------------------------------------------------------------------*

FORM PARTNER  USING    P_1300 P_1301 P_1302 P_1303 P_1304.

 

  WA_PARTNER-ORDERID        = P_1300.

  WA_PARTNER-PARTN_ROLE    = P_1301.

  WA_PARTNER-PARTN_ROLE_OLD = P_1302.

  WA_PARTNER-PARTNER        = P_1303.

  WA_PARTNER-PARTNER_OLD    = P_1304.

  append WA_PARTNER to it_PARTNER.

  clear WA_PARTNER.

 

ENDFORM.                    " PARTNER

*&---------------------------------------------------------------------*

*&      Form  USERSTATUS

*&---------------------------------------------------------------------*

FORM USERSTATUS  USING    P_1308 P_1309 P_1310 P_1311 P_1312.

 

  WA_USERSTATUS-USER_ST_TEXT  = P_1308.

  WA_USERSTATUS-LANGU        = P_1309.

  WA_USERSTATUS-LANGU_ISO    = P_1310.

  WA_USERSTATUS-INACTIVE      = P_1311.

  WA_USERSTATUS-CHANGE_EVENT  = P_1312.

  append WA_USERSTATUS to IT_USERSTATUS.

  clear WA_USERSTATUS.

 

ENDFORM.                    " USERSTATUS

*&---------------------------------------------------------------------*

*&      Form  HEADER

*&---------------------------------------------------------------------*

FORM HEADER  USING    P_1318.

  WA_HEADER-ORDERID = P_1318.

  APPEND wa_header to it_header.

  clear wa_header.

ENDFORM.                    " HEADER


The output message is as below,


"Order saved with number 2000002453"

"BAPI control was ended"

 


can any one help me if know the solution about it?

 

Thanks in advance.

jahnavee


Viewing all articles
Browse latest Browse all 8802

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>