We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-log-pm] How To Create External Operation In PM Order With BAPI_ALM_ORDER_MAINTAIN

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Reply from wagoss56 on Jul 20 at 11:09 PM
Have you maintained your External Profiles in PM config?

What do you mean that it gets the without the correct account assignment. Is it picking up a value or is it just blank?

I would seriously look at your configuration before you decide to initiate a user exit.

---------------Original Message---------------
From: Vendel Petrovics
Sent: Friday, February 03, 2017 7:35 AM
Subject: How To Create External Operation In PM Order With BAPI_ALM_ORDER_MAINTAIN

Hello,

Does anyone advise how to call FM BAPI_ALM_ORDER_MAINTAIN to create an operation with the control key PM03, where there is just No Limit, Expected Value and cost element. The problem is that, despite the entry of cost element Purchase Requisition is created without correct account assignment data, missing G/L Account.

Create operation
lv_add = 'X'.

CLEAR ls_method.
ls_method-refnumber = 1.
ls_method-objecttype = 'OPERATION'.
ls_method-method = 'CREATE'.
ls_method-objectkey = lv_aufnr && lv_vornr.
APPEND ls_method TO lt_methods.
ls_operation-activity = lv_vornr.
ls_operation-control_key = 'PM03'.
ls_operation-description = lv_description.
APPEND ls_operation TO lt_operation.
ls_method-refnumber = 1.
ls_method-objecttype = 'SERVICELIMIT'.
ls_method-method = 'CREATE'.
ls_method-objectkey = lv_aufnr && lv_vornr.
ls_servicelimit-activity = lv_vornr.
ls_servicelimit-exp_value = '0.01'.
ls_servicelimit-no_limit = 'X'.
ls_servicelimit-overall_limit = 0.
ls_servicelimit-cost_element = '0000711000'.
APPEND ls_servicelimit TO lt_servicelimit.

CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = lt_methods
it_header = lt_header
it_header_up = lt_header_up
it_operation = lt_operation
it_operation_up = lt_operation_up
return = lt_return
it_serviceoutline = lt_serviceoutline
it_servicelimit = lt_servicelimit.

Kind regards.
Vendel Petrovics

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
© 2017 Ziff Davis, LLC. and message author.
Ziff Davis, LLC. 28 E 28th Street New York, NY 10016
wagoss56  

Consultant
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Have a technical question? Need to find IT solutions? Ask your peers in the Toolbox for IT community.

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language