Application Development and Automation 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: 
Read only

ME_REQ_POSTED how to code

Former Member
0 Likes
485

hi all,

i need to change a field at eban , can i have a code for this sample, thanks

2 REPLIES 2
Read only

Former Member
0 Likes
391

Hi,

This should do the trick :


CALL FUNCTION 'BAPI_REQUISITION_GETDETAIL'
  EXPORTING
    NUMBER                               = it_display-banfn
*   ACCOUNT_ASSIGNMENT                   = ' '
*   ITEM_TEXTS                           = ' '
*   SERVICES                             = ' '
  TABLES
    REQUISITION_ITEMS                    = it_requisition_items_old
*   REQUISITION_ACCOUNT_ASSIGNMENT       =
*   REQUISITION_TEXT                     =
*   REQUISITION_LIMITS                   =
*   REQUISITION_CONTRACT_LIMITS          =
*   REQUISITION_SERVICES                 =
*   REQUISITION_SRV_ACCASS_VALUES        =
*   RETURN                               =
          .
read table it_requisition_items_old index 1.
move-corresponding it_requisition_items_old to
                   it_requisition_items_old2.
move-corresponding it_requisition_items_old to
                   it_requisition_items_new.
it_requisition_items_new-des_vendor = lifnr.
append it_requisition_items_old2.
append it_requisition_items_new.

CALL FUNCTION 'BAPI_REQUISITION_CHANGE'
  EXPORTING
    NUMBER                        = it_display-banfn
  TABLES
    REQUISITION_ITEMS_OLD         = it_requisition_items_old2
    REQUISITION_ITEMS_NEW         = it_requisition_items_new
*   REQUISITION_ACCOUNT_OLD       =
*   REQUISITION_ACCOUNT_NEW       =
*   REQUISITION_TEXT_OLD          =
*   REQUISITION_TEXT_NEW          =
*   RETURN                        =

Regards,

Dirk.

Read only

0 Likes
391

Hi Dirk,

Thanks for answrering, but at this me_req_postd, banfn has not been updated to eban ,, i dont think we can use 'BAPI_REQUISITION_CHANGE'