Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

REGARDING BAPI

Former Member
0 Kudos
82

Hi,

I am creating a service order using BAPI_ALM_ORDER_MAINTAIN & I have notification no. So please tell me what parameters should be passed to bapi ?

3 REPLIES 3

Former Member
0 Kudos
55

BDC is also good option... i tried this and then ends up with BDC..:(

Former Member
0 Kudos
55

Hi Vishal,

I am pasting the code below,

Data: I_METHODS type table of BAPI_ALM_ORDER_METHOD with header line,

I_HEADER type table of BAPI_ALM_ORDER_HEADERS_I with header line,

I_HEADERUP type table of BAPI_ALM_ORDER_HEADERS_UP with header line,

i_return type table of bapiret2.

i_methods-refnumber = '000001'.

i_methods-OBJECTTYPE = 'HEADER'.

i_methods-METHOD = 'CHANGE'.

i_methods-OBJECTKEY = '000005000018'.

append i_methods.

i_methods-OBJECTTYPE = ' '.

i_methods-METHOD = 'SAVE'.

append i_methods.

i_header-orderid = '000005000018'.

i_header-MN_WK_CTR = 'MPEAST'.

append i_header.

i_headerup-orderid = '000005000018'.

i_headerup-mn_wk_ctr = 'X'.

append i_headerup.

CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'

TABLES

IT_METHODS = i_methods

IT_HEADER = i_header

IT_HEADER_UP = i_headerup

  • IT_HEADER_SRV =

  • IT_HEADER_SRV_UP =

  • IT_USERSTATUS =

  • IT_PARTNER =

  • IT_PARTNER_UP =

  • IT_OPERATION =

  • IT_OPERATION_UP =

  • IT_RELATION =

  • IT_RELATION_UP =

  • IT_COMPONENT =

  • IT_COMPONENT_UP =

  • IT_TEXT =

  • IT_TEXT_LINES =

  • EXTENSION_IN =

RETURN = i_return

  • ET_NUMBERS =

.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

  • EXPORTING

  • WAIT =

  • IMPORTING

  • RETURN =

If Found Help Full Do Reward.

Regards.

Eshwar.

.