Quantcast
Channel: SCN : Popular Discussions - Code Exchange
Viewing all articles
Browse latest Browse all 1399

BAPI_0036_CREATE Pass throu not supporting

$
0
0

Hi All,

 

we are getting issue in BAPI_0036_CREATE.

 

Business process: Passthrough transfer

Here the budget is transferred from a simple grant to a passthrough grant along with their allocation to respective FM attributes. Manually this can be posted using transaction GM_BDGT_RELEASE.

This requires the mapping of simple grant to passthrough grant (the relation can be one-to-many). This mapping can be found in the table GMOMD which comprises of the below combinations being mapped:

 

Simple grant(Incoming grant)                                                                                                                                    Passthrough grant (Outgoing grant)

Grant number – Fund - Sponsored program - sponsored class                                                                    Grant number – Fund - Sponsored program - sponsored class

 

The requirement is to perform the above process for multiple documents using BAPI_0036_CREATE. The structure would be as follows:

Header:                               This would contain the simple grant number along with the process (passthrough transfer) and the document type details.

GM Line item details:    The GM line item would be filled with the respective sender grant details (Simple grant) and receiver grant details (passthrough grant).

FM line item details :     FM details corresponding to the above GM line items needs to be provided. This would allocate the Budget from GM lines to the FM dimensions. Which further would be consumed during various business

                                         processes.

 

On executing this BAPI the Budget document would be posted with the above transfer details.

 

 

When passing values in ITEM_DATA[] we are using different grant nos, when I

debug the program in CALL METHOD l_ref_bapi->check_item - >

CL_GM_BDGT_BAPI->method GET_AND_CHECK_RELEASE_DATA

Query fails for my scenioro as condition taking rgrant_nbr = is_header-

grant_nbr single value it should take multiple grant number to pass the

below code.

   SELECT        * FROM  gmit
           INTO TABLE lt_gmit
           WHERE  rldnr             = c_ldnr
           AND    rrcty             = c_rcty
           AND    rvers             = is_header-version
           AND    rgrant_nbr        = is_header-grant_nbr
           AND    rsponsored_prog  IN lr_program
           AND    rsponsored_class IN lr_class
           AND    rbdgt_vldty_nbr  IN lr_vldty_nbr
           AND    rfund            IN lr_fund
           AND    rvaluetype_9     IN lr_valuetype
*        AND    rtrans           IN lr_process
           AND    bdgt_state        = 'P'.

 

Could you please help me or any other alternative?

 

Rahul Jain


Viewing all articles
Browse latest Browse all 1399

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>