<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074894#M95961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Donald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You did not perform step 2 and 3. Let me write it down again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) Program R_BAPI_PROJECT_MAINTAIN (&amp;lt;b&amp;gt;copy program to Z&amp;lt;/b&amp;gt;). Import your parameters from memory to local variables.&lt;/P&gt;&lt;P&gt;(3) FM 2054_PROJECT_MAINTAIN (&amp;lt;b&amp;gt;Copy to Z&amp;lt;/b&amp;gt;) and add your new parameters as import parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then perform rest of the steps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Nov 2005 20:58:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-07T20:58:02Z</dc:date>
    <item>
      <title>BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074882#M95949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam adding custom fields in CJ20N and we are auto creating project and WBS elements from PO, due to custom fields we might have to extend BAPI ,BAPI_PROJECT_MAINTAIN ,what kind of changes required to populate custom fields in prps table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;Donald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2005 14:38:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074882#M95949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-02T14:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074883#M95950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Donald,&lt;/P&gt;&lt;P&gt;Some BAPI's have a structure called EXTENSIONIN for customer extionsion fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one does not have one. You can do one more thing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if the BAPI is calling the user exit that you have written to populate the Zfields. If so from the program that you are calling the BAPI from, you can export values to memory and Import them in the User Exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2005 15:44:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074883#M95950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-02T15:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074884#M95951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Donald,&lt;/P&gt;&lt;P&gt;There are two methods that you can use. The both methods will involve makeing a clone (Z copy) of BAPI_PROJECT_MAINTAIN. You have to copy the entire function group and rename or delete all other function modules. Then you have to add new new parameters on the pattern of existing parameters for WBS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_WBS_ELEMENT_TABLE_UPDATE_CUSTOM&lt;/P&gt;&lt;P&gt;I_WBS_ELEMENT_TABLE_CUSTOM   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first method is &lt;/P&gt;&lt;P&gt;(1)) Use BADI (definition WORKBREAKDOWN_UPDATE, Interface BEFORE_SAVE) to populate the custom fields. (I guess that your custom fields will be the part of include structure CI_PRPS). You have to identify in BADI implementation that WBS is being created by BAPI(using main program) and provide some mechanism to pass the data from function module parameters to BADI ( like export to database , import from database).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) The second method involves to change the logic of BAPI and related programs itself. I will explain it if you encounter some problem with method 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2005 16:07:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074884#M95951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-02T16:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074885#M95952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you mean additional fields which can be turned on by customizing (tab "user fields") then you can fill them in table I_WBS_ELEMENT_TABLE (structure BAPI_WBS_ELEMENT).&lt;/P&gt;&lt;P&gt;For example USER_FIELD_CHAR20_1, USER_FIELD_CHAR20_2 and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Krzys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2005 16:11:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074885#M95952</guid>
      <dc:creator>krzysztof_konitz4</dc:creator>
      <dc:date>2005-11-02T16:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074886#M95953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Agrawal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your infformation and iam new to this BADI and BAPi also.SO please can u explain me how to add custome fields from table (Ci_prps)  and populate it in CJ20N transaction.&lt;/P&gt;&lt;P&gt;If u have any code regarding this please give me that and also can u explain me in detail about the 2 methods.&lt;/P&gt;&lt;P&gt;Witing for your response.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Donald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2005 07:15:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074886#M95953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-03T07:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074887#M95954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Donald,&lt;/P&gt;&lt;P&gt;Here we are talking two different issues.&lt;/P&gt;&lt;P&gt;(1) Populating the fields in CJ20N and store/retrieve data to/from PRPS table.&lt;/P&gt;&lt;P&gt;(2) Second, make BAPI enable for new fields. &lt;/P&gt;&lt;P&gt;They are separate developments. I will explain the first one first.  &lt;/P&gt;&lt;P&gt;(1) Create structure CI_PRPS and add your custom fields in that. These fields will automatically appear in PRPS.&lt;/P&gt;&lt;P&gt;(2)Create a project (transaction CMOD)for enhancement component CNEX007(PS customer specific fields WBS element). &lt;/P&gt;&lt;P&gt;(3) SAP has provided screen exit in this enhancement. Create a  screen 700 program SAPLXCN1 (screen type subscreen) with I/O fields for new field &lt;/P&gt;&lt;P&gt;(4) Use function exit EXIT_SAPLCJWB_004 and EXIT_SAPLCJWB_005 to pass data to and fro from your screen to main SAP and vice versa. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your data will automatically saved with WBS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2005 17:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074887#M95954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-03T17:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074888#M95955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Agrawal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understood what you are saying, but according to my client requirement i should use BAPI not only for WBS elements but also for Project definition.&lt;/P&gt;&lt;P&gt;        I will expalin briefly about my requirement, when iam creating purchase order and when i save Purchase Order , it should populate custom tabs in cj20n transaction along with WBS elements and Purchase Order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Donald.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2005 07:14:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074888#M95955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-04T07:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074889#M95956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agarwal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yaa just i have tried the logic which u have given for populating CJ20N , it is working fine, now can you say me how to populate using BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;DOnald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2005 09:53:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074889#M95956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-04T09:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074890#M95957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Donald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am happy that the first solution worked for you properly. I think the best solution will be to change the code of BAPI itself( I did it myself on last project). Navigate taking following path.&lt;/P&gt;&lt;P&gt;(1) Z BAPI, Export your new parameters to memory ( follow the pattern of original parameters for WBS)&lt;/P&gt;&lt;P&gt;(2) Program R_BAPI_PROJECT_MAINTAIN (copy program to Z). Import your parameters from memory to local variables.&lt;/P&gt;&lt;P&gt;(3) FM 2054_PROJECT_MAINTAIN (Change to Z) and add your new parameters as import parameter.&lt;/P&gt;&lt;P&gt;(4) Navigate to form object_maintain ( copy include FCNIFF01 to Z)&lt;/P&gt;&lt;P&gt;(5) Navigate to form wbs_element_maintain (copy include FCNIFF01 to Z)&lt;/P&gt;&lt;P&gt;(6)In Case statement to create WBS element as following&lt;/P&gt;&lt;P&gt; CASE method.&lt;/P&gt;&lt;P&gt;    WHEN co1_meth-create.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;we must have a valid reference to a project definition!&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL FUNCTION 'CN2W_WBSELEMENT_CREATE_STRU'&lt;/P&gt;&lt;P&gt;           EXPORTING&lt;/P&gt;&lt;P&gt;                i_posid        = l_prps-posid&lt;/P&gt;&lt;P&gt;                i_pspid        = i_proj-pspid&lt;/P&gt;&lt;P&gt;                i_prps         = l_prps&lt;/P&gt;&lt;P&gt;                i_flg_testmode = i_flg_testmode&lt;/P&gt;&lt;P&gt;           IMPORTING&lt;/P&gt;&lt;P&gt;                e_pspnr        = i_prps-pspnr&lt;/P&gt;&lt;P&gt;           EXCEPTIONS&lt;/P&gt;&lt;P&gt;                create_failed  = 1&lt;/P&gt;&lt;P&gt;                OTHERS         = 2.&lt;/P&gt;&lt;P&gt;      IF NOT flg_error_occured IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           wbs-element could not be created&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        MESSAGE e074(cj) WITH l_prps-posid INTO null.&lt;/P&gt;&lt;P&gt;        PERFORM put_sy_message.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Leere Terminsätze anlegen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL FUNCTION 'CJDT_TRTAB_INSERT_STRU'&lt;/P&gt;&lt;P&gt;           EXPORTING&lt;/P&gt;&lt;P&gt;                pspnr_imp = i_prps-pspnr&lt;/P&gt;&lt;P&gt;           EXCEPTIONS&lt;/P&gt;&lt;P&gt;                OTHERS    = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You populate I_PRPS with the values in your new import parameters. These values will be saved with WBS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on this pattern, you can figure out create_with_reference and change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2005 14:45:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074890#M95957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-04T14:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074891#M95958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Agarwal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have followed the steps given by you.But i didnt understand from 4 th step(Navigate to form Object_maintain), can you be more clear about this step.&lt;/P&gt;&lt;P&gt;Waiting for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Donald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 05:34:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074891#M95958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T05:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074892#M95959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry. It is objects_maintain. It is in source code of FM 2054_PROJECT_MAINTAIN( Line number 318).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 14:03:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074892#M95959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T14:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074893#M95960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What iam following is the following steps, but iam not getting expected result.Can you say me where aim commiting wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Copying BAPI_PROJECT_MAINTAIN to ZBAPI.&lt;/P&gt;&lt;P&gt;2.Iam including my Custom Structure from PRPS table to Table Parameters WBS_ELEMENT_tTABLE_UPDATE (POPULATING THE VALUES AS X) AND copying my structure in WBS_ELMENT_UPDATE.&lt;/P&gt;&lt;P&gt;3.Copying FCNIFF01 to z Include and calling the function modules CN2W_WBSELEMETN_CREATE_STRU AND CJDT_TRTAB_INSERT_STRU(Why  we r calling this function modules).&lt;/P&gt;&lt;P&gt;   Why we have to navigate OBJECT_MAINTAIN and WBS_ELEMET_MAINTAIN, Whether i have to considerand where i have to include my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understood what u r saying, but iam not able to get the result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can u explain me clearly.&lt;/P&gt;&lt;P&gt;Thanks a lot for solving my problem.&lt;/P&gt;&lt;P&gt;Donald.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 15:49:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074893#M95960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T15:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074894#M95961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Donald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You did not perform step 2 and 3. Let me write it down again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) Program R_BAPI_PROJECT_MAINTAIN (&amp;lt;b&amp;gt;copy program to Z&amp;lt;/b&amp;gt;). Import your parameters from memory to local variables.&lt;/P&gt;&lt;P&gt;(3) FM 2054_PROJECT_MAINTAIN (&amp;lt;b&amp;gt;Copy to Z&amp;lt;/b&amp;gt;) and add your new parameters as import parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then perform rest of the steps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 20:58:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1074894#M95961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T20:58:02Z</dc:date>
    </item>
  </channel>
</rss>

