Application Development 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: 

BAPI_ENTRYSHEET_CREATE - does not update Cost Center

venkateswaran_k
Active Contributor
0 Kudos

Dear All

I am using   BAPI_ENTRYSHEET_CREATE to create service entry sheets.  However, the cost center is not updated in the service entry sheets. (though I am passing it in BAPI ).  It by default take it from PO.

Can someone help me.

    CALL FUNCTION 'BAPI_ENTRYSHEET_CREATE'
      EXPORTING
        entrysheetheader            = wa_header
*       testrun                     = 'X'
      IMPORTING
        entrysheet                  = ws_entrysheet_no
      TABLES
        ENTRYSHEETACCOUNTASSIGNMENT = i_service_acc1   <-- I am passing CC here
        entrysheetservices          = bapi_esll

        return                      = i_return
     .

Regards,

Venkat

4 REPLIES 4

Former Member
0 Kudos

I'm not particularly familiar with this one, but might you have to mark the field TO_COSTCTR?

Neal

Former Member
0 Kudos

A second thought.  Did you do an alpha conversion to it as done in LMLSXF3Z

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'"Kostenstelle
EXPORTING
      INPUT   = B_ESKN-KOSTL
IMPORTING
    OUTPUT  = B_ESKN-KOSTL
EXCEPTIONS
      OTHERS  = 1.

Former Member
0 Kudos

Hi Venkateswaran,

Give inputs as per the attachments. It will work.

The key is to use dummy pack no and sub pack no even though you have pack no & Sub pack no for the service master.

Former Member
0 Kudos

Hi Venkateswaran,

One more JPG attached.