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

BAPI_ENTRYSHEET_CREATE - does not update Cost Center

venkateswaran_k
Active Contributor
0 Likes
1,602

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
Read only

Former Member
0 Likes
1,319

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

Neal

Read only

Former Member
0 Likes
1,319

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.
Read only

Former Member
0 Likes
1,316

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.

Read only

Former Member
0 Likes
1,316

Hi Venkateswaran,

One more JPG attached.