How to create Appropriation Request using BAPI_APPREQUEST_CREATE

What is Appropriation Request

Appropriation Request is the component of Investment Management ( IM ) to support the investment process in the phase concerned with planning and making decision about the investment to be implemented, it’s similar as purchase requisition.

Once the appropriation request has been approved and the information can be transferred to the order or project. You can create Appropriation Request via IMA1N tcode. In this article we will create Appropriation Request using BAPI_APPREQUEST_CREATE.

You need to declare required variable for this BAPI.

ABAP

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

DATA:ls_masterdataTYPEbapiappreqmaster,

ls_userTYPEbapiapprequser,

ls_variantTYPEbapiappreqvarnt.

DATA:lt_orgunitTYPETABLEOFbapiappreqorgunitWITHHEADERLINE,

lt_divisionTYPETABLEOFbapiappreqdivisionWITHHEADERLINE,

lt_matgroupTYPETABLEOFbapiappreqmatgroupWITHHEADERLINE,

lt_investreaTYPETABLEOFbapiappreqinvreasonWITHHEADERLINE,

lt_environveTYPETABLEOFbapiappreqenvinvestWITHHEADERLINE,

lt_wbselementTYPETABLEOFbapiappreqwbselemWITHHEADERLINE,

lt_partnerTYPETABLEOFbapiappreqpartnerWITHHEADERLINE,

lt_retTYPETABLEOFbapiret2WITHHEADERLINE,

lt_assignTYPETABLEOFbapiappreqexpprogassgnWITHHEADERLINE,

lt_orderTYPETABLEOFbapiappreqordersWITHHEADERLINE.

DATA:lv_testrunTYPEbapi_appreq_aux-testrun.

The next step you have to pass the required data to BAPI_APPREQUEST_CREATE as you create Appropriation request manual via IMA1N.

You need to pass required data in Organization Units tab likes Req Cost center and Resp Cost Center. Resp Company Code, Req Company Code etc. And fullfill all of required data for this BAPI.