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

Re: Maintenance Order BUS2007 Event: Created and...

$
0
0

Hi Cristian ,

 

You dont need to worry , you can learn ABAP !!!

 

You are getting this error as you have not implimented the method which you have created .

 

Follow these steps .

 

Step 1 . Go to EDIT >> CHANGE RELEASE STATUS > IMPLIMENT

Now Release the same method .SDN 1.png

 

 

Step 2.  Write this code inside the method .

 

DATA : lt_methods TYPE STANDARD TABLE OF bapi_alm_order_method ,

       ls_methods TYPE bapi_alm_order_method,

       lt_return TYPE STANDARD TABLE OF bapiret2 ,

       lv_aufnr TYPE aufnr .



CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'

  EXPORTING

    input  = object-key-number

  IMPORTING

    output = lv_aufnr.



* fill methods to prepare for BAPI

ls_methods-refnumber = '000000'.

ls_methods-objecttype = 'HEADER'.

ls_methods-method = 'RELEASE'.

ls_methods-objectkey = lv_aufnr.

APPEND ls_methods TO lt_methods.



CLEAR ls_methods.

ls_methods-method = 'SAVE'.

APPEND ls_methods TO lt_methods.



* set status to Released

CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'

  TABLES

    it_methods = lt_methods

    return     = lt_return.

 

Step 3.    Now save and generate the Method and the custom BOR .

 

It should work .

 

All the best .

 

Regards ,

Ashish Gaur .

 

 


Viewing all articles
Browse latest Browse all 8808

Trending Articles