Skip to Content
author's profile photo Former Member
Former Member

Joint Venture Upload for a Profit Center

Hi All,

Could you please let me know the procedure how we can upload the Joint Venture data for a company code for the particular Profit Center. I am currently trying this by using a BAPI - PROFITCENTER_CHANGE. This BAPI is showing that its executed successfully but its not showing the cost centers.

The following is part of the code that i am using:

  • build up the call table for companycodes

LOOP AT GT_BUKRS INTO GD_BUKRS.

LOOP AT GS_JVDAT WHERE BUKRS = GD_BUKRS.

GS_PRCT1_BUKRS-COMP_CODE = GD_BUKRS.

GS_PRCT1_BUKRS-ASSIGN_TO_PRCTR = 'X'.

GS_PRCT1_BUKRS-VNAME = GS_JVDAT-VNAME.

GS_PRCT1_BUKRS-RECID = GS_JVDAT-RECID.

GS_PRCT1_BUKRS-ETYPE = GS_JVDAT-ETYPE.

GS_PRCT1_BUKRS-JV_OTYPE = GS_JVDAT-OTYPE.

GS_PRCT1_BUKRS-JV_JIBCL = GS_JVDAT-JIBCL.

GS_PRCT1_BUKRS-JV_JIBSA = GS_JVDAT-JIBSA.

APPEND GS_PRCT1_BUKRS TO GT_PRCT1_BUKRS.

  • prepare xbar for function call

GS_PRCT1_BUKRSX-COMP_CODE = GD_BUKRS.

GS_PRCT1_BUKRSX-ASSIGN_TO_PRCTR = 'X'. "relevant for change

GS_PRCT1_BUKRSX-VNAME = 'X'.

GS_PRCT1_BUKRSX-RECID = 'X'.

GS_PRCT1_BUKRSX-ETYPE = 'X'.

GS_PRCT1_BUKRSX-JV_OTYPE = 'X'.

GS_PRCT1_BUKRSX-JV_JIBCL = 'X'.

GS_PRCT1_BUKRSX-JV_JIBSA = 'X'.

APPEND GS_PRCT1_BUKRSX TO GT_PRCT1_BUKRSX.

ENDLOOP.

ENDLOOP.

CLEAR GS_BAPIRET2.

CALL FUNCTION 'PROFITCENTER_CHANGE'

EXPORTING

PRCTR_DATA = GS_PRCTR_DATA

PRCTR_DATAX = GS_PRCTR_DATAX "empty

NO_CCODES_CHECK = P_NO_CCC

COMPLETE = 'X'

INACTIVE_VERSION = 'X'

TESTRUN = GS_TESTRUN

INSERT_MODE = 'X'

IMPORTING

RETURN = GS_BAPIRET2

TABLES

COMPANYCODE_JOINT_VENTURE = GT_PRCT1_BUKRS

COMPANYCODE_JOINT_VENTUREX = GT_PRCT1_BUKRSX.

Please suggest or clarify to proceed accordingly.

Thanks,

Suresh.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 04, 2005 at 08:40 AM

    Hi,

    Please help me out to sort out the problem of BAPI - PROFITCENTER_CHANGE.

    Thanks,

    Suresh

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.