Issue while changing activity partner in BAPI BAPI_ACTIVITYCRM_CHANGEMULTI

Hi,
I'm trying to change 'Activity Partner' for an activity using BAPI BAPI_ACTIVITYCRM_CHANGEMULTI. But the function module is giving me an error 'Document could not be saved.'. I'm already calling BAPI_ACTIVITYCRM_SAVE BAPI_TRANSACTION_COMMIT after the main BAPI.
Can someone help me? Any help would be highly appreciated.
Here are the parameters I'm filling for the above BAPIs.
BAPI_ACTIVITYCRM_CHANGEMULTI
    lt_header-guid         = t_tgtact-act_guid.
    lt_header-object_id    = t_tgtact-act_no_crm.
    lt_header-mode         = 'B'. "Change
    lt_headerx-guid         = c_x.
    lt_headerx-object_id    = c_x.
    lt_header-mode          = c_x.
    lt_partner-ref_guid           = <original BP guid>
    lt_partner-ref_kind           = 'A'.
    lt_partner-ref_partner_handle = '0001'.
    lt_partner-ref_partner_fct    = '00000009'. "Act part
    lt_partner-partner_fct  = '00000009'. "Act part
    lt_partner-partner_no   = <new BP no>.
    lt_partner-no_type      = 'BP'."bus. partner no
    lt_partner-display_type = 'BP'."bus. partner no
    lt_partnerx-ref_guid           = c_x.
    lt_partnerx-ref_kind           = c_x.
    lt_partnerx-ref_partner_handle = c_x.
    lt_partnerx-ref_partner_fct    = c_x.
    lt_partnerx-partner_fct  = c_x.
    lt_partnerx-partner_no   = c_x.
    lt_partnerx-no_type      = c_x.
    lt_partnerx-display_type = c_x.
BAPI_ACTIVITYCRM_SAVE
    lt_objtosave-guid        = <act_guid>
    lt_objtosave-OBJECT_TYPE = 'BUS2000126'.

Hi Vivek,
Thanks for the reply. I have made the changes. Could you please see the code below? I believe that the parter and partnerx table will only have one entry each.
Please let me know if I'm doing something wrong here. Thanks!
Header -
    lt_header-guid         = t_tgtact-act_guid.
    lt_header-handle       = '0001'.
    lt_header-mode         = 'B'. "Change
    lt_headerx-guid         = c_x.
    lt_headerx-handle       = c_x.
    lt_headerx-mode         = c_x.
Reference -------------------------------*
    lt_partner-ref_guid           = t_tgtact-act_guid.
    lt_partner-ref_kind           = 'B'.
    lt_partner-ref_handle         = lt_header-handle.
    lt_partnerx-ref_guid           = c_x.
    lt_partnerx-ref_kind           = c_x.
    lt_partnerx-ref_handle         = c_x.
Reference Partner ---------------------------*
    lt_partner-ref_partner_handle = '0002'.
    lt_partner-ref_partner_fct    = c_parfn_actbp.
    lt_partner-ref_partner_no     = t_tgtact-bpno.
    lt_partner-ref_no_type        = 'BP'.
    lt_partner-ref_display_type   = 'BP'.
    lt_partnerx-ref_partner_handle = c_x.
    lt_partnerx-ref_partner_fct    = c_x.
    lt_partnerx-ref_partner_no     = c_x.
    lt_partnerx-ref_no_type        = c_x.
    lt_partnerx-ref_display_type   = c_x.
New Partner ---------------------------*
    lt_partner-partner_fct  = c_parfn_actbp.
    lt_partner-partner_no   = t_tgtact-tgt_bpno.
    lt_partner-no_type      = 'BP'.
    lt_partner-display_type = 'BP'.
    lt_partnerx-partner_fct  = c_x.
    lt_partnerx-partner_no   = c_x.
    lt_partnerx-no_type      = c_x.
    lt_partnerx-display_type = c_x.
Object to Save -
    lt_objtosave-guid        = t_tgtact-act_guid.
    lt_objtosave-object_type = 'BUS2000126'.
    append: lt_header,  lt_headerx.
    append: lt_partner, lt_partnerx.
    append: lt_objtosave.

Similar Messages

  • Error while creating activity by using BAPI

    Hi,
    While creating activity by using BAPI Im getting error as follows,
    Start processing of refference object handle generated.
    Integrity rule a d0008 broken
    business partner with function from vbkakom not vbpakom
    Integrity rule a d0008 broken
    edit all incomplete field .
    Please help me for solving this issue.
    Regards,
    Suresh

    Not received any proper reply Closing the issue.

  • Confirmation Quantity issue while creating Sales order using BAPI

    Hi SDN,
    Can anyone of you help mein the below issue:
    I have a program to create a sales order using upload file. for this i use "BAPI_SALESORDER_CREATEFROMDAT2" & for changing existing "BAPI_SALESORDER_CHANGE".
    Now If the upload file contains the Same Material, Based on other conditions, it needs to create Multiple sales order.
    When the first Salesorder is created, the Quantity is getting confirmed (Confirmed quantity VBEP-BMENG). But during actual run, since the confirmation is getting done for the same material in the above Sales order, the confirmation is not being done in the subsequent Sales order".
    This poses a problem for business, user need to manual refresh the u201Cconfirmed quantity for each line item in the particular SO where it failed during program upload.
    Also while uploading using the BAPI, if we wait forsometime after creating the first sales order in Debug, then the above material is unlocked & the confirmation quantity is done for the subsequent sales order also.
    But in the actual run, this is creating a problem. Some Refresh or Unlocking problem.
    Can you please suggest a suitable solution for this issue.
    Thanks & regrads,
    Chaitanya LBK

    Have you tried backorder processing?
    V_V1
    V_V2
    V_RA
    V_R1
    V_R2

  • Issue while changing Item Category during Sales Order Creation

    Hi,
    Requirement:
    Requirement is to change the item category of Sales Order item while creating the sales order.
    Rule is: If item category is IRAT then it should be changed to IRLN.
    For this, I am using the user exit "USEREXIT_SAVE_DOCUMENT_PREPARE" available in the include MV45AFZZ.
    Issue:
    Using the above mentioned exit, Item category is getting changed to the desired value in the created sales order BUT value of Billing Status (VBUP-FKSAA) which is supposed to get changed is blank.
    For example, Sales order is created from VA01 and item category is changed manually to the value mentioned above, then for the sales order created we have VBUP-FKSAA = 'A'. But when value of Item category is not changed manually and it is changed from the exit, then value of VBUP-FKSAA is blank.
    I have to find a solution which would change the value of Billing Status according to the change in the value of Item Category.
    Please suggest a relevant solution.
    Thanks a lot for responding.
    Abhinav.
    Edited by: Abhinav Jain on Apr 9, 2010 6:47 PM

    Hi Abhinav,
    I have a simmilar problem. In my case I am changing Reason of Rejection in the user-exit, but net value is not getting updated. Did you solve your problem? Any other way to change a field of a sales order item?
    Thanking you in advance,
    Nisha

  • Date Issue while creating Activity using BAPI_ACTIVITYCRM_CREATEMULTI

    Hi,
    I'm creating an activity using BAPI BAPI_ACTIVITYCRM_CREATEMULTI and this is working fine. The only thing which is not reflecting in the activity is the date which I'm passing to this BAPI. The system  always puts the default date, which is system date.
    Below are the parameters I'm passing in DATE and DATEX parameters of BAPI_ACTIVITYCRM_CREATEMULTI. Let me know if I'm doing something wrong.
    Can someone help me? Any help in resolving this would be appreciated and rewarded with points. Thanks!
        lt_date-ref_handle = lt_header-handle. "handle for activity
        lt_date-ref_kind   = 'A'. "Adm header
        lt_date-appt_type  = 'ORDERACTUAL'. "Order actual date type
        lt_date-date_from  = '20060120'. "e.g.
        lt_date-time_from  = '1200000'. "e.g.
        lt_date-date_to    = '20060120'."e.g.
        lt_date-time_to    = '1200000'. "e.g.
        lt_date-show_local = 'X'.
        lt_date-mode       = 'A'."Create
        lt_datex-ref_handle = 'X'.
        lt_datex-ref_kind   = 'X'.
        lt_datex-appt_type  = 'X'.
        lt_datex-date_from  = 'X'.
        lt_datex-time_from  = 'X'.
        lt_datex-date_to    = 'X'.
        lt_datex-time_to    = 'X'.
        lt_datex-show_local = 'X'.
        lt_datex-mode      = 'X'.
        append: lt_date, lt_datex.
    Regards,
    Sandeep

    Hi,
    Here is a sample code for you.
    *& Report  YAM_TEST_CONT_END_DATE                                      *
    REPORT  yam_test_cont_end_date                  .
    DATA: lit_header_guid TYPE crmt_object_guid_tab,
          lit_appointment TYPE crmt_appointment_comt,
          lit_status_comt TYPE crmt_status_comt,
          wa_status_comt  LIKE LINE OF lit_status_comt.
    DATA : lit_ret          TYPE TABLE OF bapiret2,
           lit_obj_to_save  TYPE TABLE OF bapibus20001_guid_dis,
           lit_saved_obj    TYPE TABLE OF bapibus20001_object_id.
    DATA: lv_header_guid   TYPE crmt_object_guid,
          lv_item_guid     TYPE crmt_object_guid,
          lv_timestamp(15) TYPE c.
    DATA: lit_fname TYPE crmt_input_field_names_tab,
          wa_fname  TYPE crmt_input_field_names.
    DATA: lit_input TYPE crmt_input_field_tab,
          wa_input  TYPE crmt_input_field.
    DATA: wa_appointment      TYPE  crmt_appointment_com,
          wa_logical_date_key TYPE  crmt_date_logical_date_key.
    CONSTANTS: lc_end       TYPE crmt_apptype     VALUE 'CONTEND',
               lc_appt      TYPE crmt_fieldname   VALUE 'APPT_TYPE',
               lc_from      TYPE crmt_fieldname   VALUE 'TIMESTAMP_FROM',
               lc_to        TYPE crmt_fieldname   VALUE 'TIMESTAMP_TO',
               lc_obj       TYPE crmt_object_name VALUE 'APPOINTMENT',
               lc_tzone_from(13) TYPE c           VALUE 'TIMEZONE_FROM',
               lc_tzone_to(11)   TYPE c           VALUE 'TIMEZONE_TO'.
    PARAMETER: p_objid TYPE crmt_object_id.
    START-OF-SELECTION.
    * Get the HEADER GUID for the Contract Number
      SELECT SINGLE guid
        INTO lv_header_guid
        FROM crmd_orderadm_h
       WHERE object_id EQ p_objid.
      CHECK sy-subrc EQ 0.
    * Get the Item GUID for the HEADER GUID
      SELECT SINGLE guid
        INTO lv_item_guid
        FROM crmd_orderadm_i
       WHERE header EQ lv_header_guid.
      CHECK sy-subrc EQ 0.
      APPEND lv_header_guid TO lit_header_guid.
      APPEND lv_header_guid TO lit_obj_to_save.
    * Convert System date and time to timestamp
      CONCATENATE sy-datum sy-uzeit INTO lv_timestamp.
    * Setting Contract End Date
      MOVE: lv_item_guid          TO wa_appointment-ref_guid,
            'B'                   TO wa_appointment-ref_kind,
            'CONTEND'             TO wa_appointment-appt_type,
            lv_timestamp          TO wa_appointment-timestamp_from,
            lv_timestamp          TO wa_appointment-timestamp_to,
            sy-zonlo              TO wa_appointment-timezone_to,
            sy-zonlo              TO wa_appointment-timezone_from.
    * Filling the Input Fields for Appointment
      wa_fname-fieldname = lc_appt.
      INSERT wa_fname INTO TABLE lit_fname.
      CLEAR: wa_fname.
      wa_fname-fieldname = lc_from.
      INSERT wa_fname INTO TABLE lit_fname.
      CLEAR: wa_fname.
      wa_fname-fieldname = lc_to.
      INSERT wa_fname INTO TABLE lit_fname.
      CLEAR: wa_fname.
      wa_fname-fieldname = lc_tzone_from.
      INSERT wa_fname INTO TABLE lit_fname.
      CLEAR: wa_fname.
      wa_fname-fieldname = lc_tzone_to.
      INSERT wa_fname INTO TABLE lit_fname.
      CLEAR: wa_fname.
      wa_logical_date_key-appt_type = lc_end.
      MOVE: lv_item_guid          TO wa_input-ref_guid,
            'B'                   TO wa_input-ref_kind,
            lc_obj                TO wa_input-objectname,
            wa_logical_date_key   TO wa_input-logical_key,
            lit_fname             TO wa_input-field_names.
      APPEND wa_input TO lit_input.
      CLEAR: wa_input, wa_logical_date_key.
      APPEND wa_appointment TO lit_appointment.
      CALL FUNCTION 'CRM_ORDER_MAINTAIN'
        EXPORTING
          it_appointment    = lit_appointment
          it_status         = lit_status_comt
        CHANGING
          ct_input_fields   = lit_input
        EXCEPTIONS
          error_occurred    = 1
          document_locked   = 2
          no_change_allowed = 3
          no_authority      = 4
          OTHERS            = 5.
      CHECK sy-subrc EQ 0.
    * Saving the items alone
      CALL FUNCTION 'BAPI_BUSPROCESSND_SAVE'
        TABLES
          objects_to_save = lit_obj_to_save
          saved_objects   = lit_saved_obj
          return          = lit_ret.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = 'X'.
    <b>Reward points if it helps.</b>
    Regards,
    Amit Mishra

  • Issue while changing fields in a fillable form PDF (Acrobat 10.1.4 Pro)

    Good Afternoon!
    This is my first time posting here, so forgive me if this is in the wrong place.
    I am an IT technician trying to support a user who is trying to change a PDF into a fillable form using Acrobat 10.1.4.  She is trying to use the wizard as shown in the image below:
    When she uses this function, Acrobat goes through and automatically detects all possible fields and creates them for her.  Below is an image of the result:
    What she is trying to do is change some of the field types - specifically, she wants to change the box next to "Adult/non-college request" to a check box.  She right clicks on this field to change it, and when she does, Acrobat simply closes.  No error comes up, and she is not given the option to save the document - when she opens it again, it is an ordinary PDF.  In addition, if she creates the form, and then only tries to save the form (without trying to change the fields), Acrobat again simply closes itself.  However, she is able to manually create fillable fields if she does not use the wizard at all, and the document functions normally.
    Any help with this issue would be most appreciated.

    Save early and often.
    I would save the result right after the wizard has made its errors.
    One needs to delete the form field and then manually add the correct type of field. If you want that check box and the next to be mutually exclusive, one gives them the same name and sets the export value for each check box to a unique value.
    I edit forms by opening the "Tools => Forms => Edit fields".
    How to create editable PDF form fields
    I do not like the wizards and create forms by adding all form fields manually according to my planned form design.

  • Issue while changing validity date for assigned roles: SAP IDM 7.2 SP8

    Hello Experts
    I assigned the Task on repository for validity modification for Roles as in below screenshot:
    When I modify the role validity, Task defined for Validity modification doesnt get triggered and IDM executes the tasks defined as Modify Task and fails with below errors:
    1. Could not obtain repository name from Pending object.
    2. Error ! Audit id , Variable doesnt exist in MXPT_GET_ENTRYTYPE.
    I tried checking provisioning audit logs but could'nt find any Audit ID created for validity modification and I guess due to this tasks are getting cancelled.
    Why the task defined in Modify Valdity tasks doesnt get triggered when I modify the Role assignment validity ?
    Am I doing anything wrong with the SAP Standard way of working ?
    Regards
    Deepak Gupta

    Hi Deepak/Chris,
    We are also facing a similar issue in our project where modifying validity of the role does not trigger any task. We then changed the Modify attribute(in task tab) on the priveleges to "inhereted".
    The modify task is now triggered and completes successfully. However, no changes occur in backend.
    We need unedrstand where do we maintain the setting to define which attributes(if changed) will trigger an event task in the provisioning framework. the "check attributes modification" task within the provisioning framework executes the below query:
    select COUNT(VarName) from mxpv_audit_variables where AuditID=%AUDITID% and VarValue='%MSKEY%' and VarName='MARK_EXEC_MODIFY_ATTR%MSKEY%'
    The query gives the result as "False" in case we only modify the validity of the role assigned to user. Thus no event tasks are executed for the same.
    Can anyone please share where do we define the attributes for this query to give "True" as result for role validity modification.
    regards,
    Nits

  • Performance Issue while changing a characteristic using CT04 transaction

    Hi Experts,
    Just now we have upgraded our system from 4.6C to ECC 6.0. In the new system we have created some characteristics and later I am trying to change these characteristics using transaction CT04 .
    There are some characteristics which are already present in the new system which has come from 4.6 C. Now when I try to open/change these characteristic (already existing) using CT04 it does not take any time where as if I try to open/change a characteristic which is created newly in ECC 6.0, then it takes a lot of time.
    When I run SQL trace for both the scenario, then I find that most of the time taken is on Query on table PLFV.
    Trace Result for Newly Created Characteristic :
    115 PLFV PREPARE 0 SELECT WHERE "MANDT" = :A0 AND "ATINN"
    = :A1 AND "LOEKZ" = :A2 AND ROWNUM <= :A3
    3 PLFV OPEN 0 SELECT WHERE "MANDT" = '070' AND "ATINN" =
    0000000575 AND "LOEKZ" = ' ' AND ROWNUM <= 1
    336681733 PLFV FETCH 0 1403
    For this time taken is 336681733 .
    Trace Result for Existing Characteristic :
    2 PLFV OPEN 0 SELECT WHERE "MANDT" = '070' AND "
    ATINN" = 0000000575 AND "LOEKZ" = ' ' AND ROWNUM <= 1
    For this time taken is 2.
    Here one difference I see is that for the Newly created characteristic, Prepare, Open and Fetch part is executed where as for the already existing query only Open is executed.
    The program which is used for querying PLFV is SAPLCMX_TOOLS_CHARACTERISTICS.
    Could you please help me in this.
    Your response is highly appreciated.
    Regards,
    Lalit Kabra

    Hi Rob,
    Thanks for the response. But the problem which I mentioned is not with all the characteristics. It occurs only with those characteristics which are newly created. The characteristics which are already created are opened without any delay.
    So I am bit confused whether for this problem there would be be any note though I tried searching the same as well.
    Please respond if some one has clue about this issue.
    Your response is highly appreciated.
    Regards,
    Lalit Kabra

  • Performance Issue while changing Characteristics from CT04

    Hi Experts,
    Just now we have upgraded our system from 4.6C to ECC 6.0. In the new system we have created some characteristics and later I am trying to change these characteristics using transaction CT04 .
    There are some characteristics which are already present in the new system which has come from 4.6 C. Now when I try to open/change these characteristic (already existing) using CT04 it does not take any time where as if  I try to open/change a characteristic which is created newly in ECC 6.0, then it takes a lot of time.
    When I run SQL trace for both the scenario, then I find that most of the time taken is on Query on table PLFV.
    Trace Result for Newly Created Characteristic :
    115 PLFV       PREPARE      0     SELECT WHERE "MANDT" = :A0 AND "ATINN"
          = :A1 AND "LOEKZ" = :A2 AND ROWNUM <= :A3
    3 PLFV       OPEN                 0   SELECT WHERE "MANDT" = '070' AND "ATINN" =
       0000000575 AND "LOEKZ" = ' ' AND ROWNUM <= 1*
    336681733 PLFV       FETCH       0   1403        
    For this time taken is 336681733 .
    Trace Result for Existing Characteristic :
    2    PLFV       OPEN               0           SELECT WHERE "MANDT" = '070' AND "
                                                                  ATINN" = 0000000575 AND "LOEKZ" = ' ' AND ROWNUM <= 1
    For this time taken is 2.
    Here one difference I see is that for the Newly created characteristic, Prepare, Open and Fetch part is executed where as for the already existing query only Open is executed.
    The program which is used for querying PLFV is  SAPLCMX_TOOLS_CHARACTERISTICS.
    Could you please help me in this.
    Your response is highly appreciated.
    Regards,
    Lalit Kabra

    hi Rajesh,
    Pls check the below comments
    Please install the Oracle optimizer patch 6740811 and 6455795 as per
    note 871096. Also ensure you have installed the other patches listed in
    the same note as these are mandatory when running on Oracle 10.2
    If this does not solve your problem open an OSS message for this.
    Regards,
    Lalit

  • Issues while changing primary key in table

    Hi
    I have one table. In that two fields are primary key. I want to change the second PK as FK only. But when i am changing this field as FK. Its showing one error 'Primary Key Change not permitted for value Table ZCAUSECATMASTER' . How to avoid this error.
    Please help me.

    Hi.....
    Remove that primary key for the second field and assign your foregin key..table to that filed.....
    So when you give entries in that second filed it will be validated with its foregin key table......its nothing but check table...
    what all values in the foregin table only can given.....
    regards
    raja

  • LSMW issue while changing Customer(XD02)

    Hi Experts,
    I need to update the Bank details for single customer.
    Actual Issue: I can insert a Bank details for a customer from flat file but if a customer has two Bank details(assume as line item) then how to handle this type of scenario using LSMW tool.
    Please help me on this!
    Thanks
    Regards,
    Vishwa

    I would analyze the data first to find out how much cases will jsut get one bank and how much will have multiple.
    If there are only a few with multiple, then it is probably done much quicker manually for those, and you can upload all others that have only one.
    If there are many, then I would analyze what the maximum number of banks per customer is, and then put the cursor one line after the highest number and add whatever I need to add. SAP automatically skips the empty lines.
    This was for recording with LSMW.
    Edited by: Jürgen L. on Jun 9, 2011 11:02 PM

  • Adding and removing partner's w/ BAPI_ACTIVITYCRM_CHANGEMULTI

    I have a requirement to programatically update activities, leads and opportunities with with new partners of various partner functions based on an input file I will recieve. I am trying to use function module BAPI_ACTIVITYCRM_CHANGEMULTI in a custom ABAP program to accomplish this task. I am passing to it the tables partner, partnerx and input_fields. I am putting the delete records before the insert records in the internal tables. I have debuged transaction CRMD_BUS2000126 -Maintain activities and looked at how the data is passed into CRM_ORDER_MAINTAIN as my point of reference. I am finding that the deletes of the existing partners is not working but, the insert of the new partners is. For the deletes I am populating the internal tables as shown below. Whereever you see field symbol usage I've either obtained the data via the input file or database table reads which I have rechecked many times. Am I missing entries or making incorrect entries? Is there another way to delete the entries from the business transactions programatically? Thoroughly confused here. Thanks in advance. Tony Dagnillo
    partner-REF_GUID = <fs_delete_partners>-ref_guid.
    partner-ref_handle = 0.
    partner-ref_kind = 'A'.
    partner-ref_partner_handle = 0.
    partner-partner_no = <fs_delete_partners>-partner_number.
    partner-display_type = 'BP'.
    partner-no_type = 'BP'.
    partner-ref_partner_fct = <fs_delete_partners>-partner_fct.
    partner-ref_partner_no = <fs_delete_partners>-partner_number.
    partner-ref_display_type = 'BP'.
    partner-ref_no_type = 'BP'.
    partner-businesspartnerguid = <fs_delete_partners>-partner_guid.
    partner-mainpartner = <fs_delete_partners>-mainpartner.
    partner-relation_partner = <fs_delete_partners>-relation_partner.
    partnerx-REF_GUID = 'X'.
    partnerx-ref_handle = 'X'.
    partnerx-ref_kind = 'X'.
    partnerx-ref_partner_handle = 'X'.
    partnerx-partner_no = 'X'.
    partnerx-display_type = 'X'.
    partnerx-no_type = 'X'.
    partnerx-ref_partner_fct = 'X'.
    partnerx-ref_partner_no = 'X'.
    partnerx-ref_display_type = 'X'.
    partnerx-ref_no_type = 'X'.
    partnerx-businesspartnerguid = 'X'.
    partnerx-mainpartner = 'X'.
    partnerx-relation_partner = 'X'.
    input_fields-ref_handle = <fs_partner>-ref_partner_handle.
    input_fields-ref_guid = <fs_partner>-ref_guid.
    input_fields-ref_kind = 'A'.
    input_fields-objectname = 'PARTNER'.
    input_fields-logical_key(8) = <fs_partner>-ref_partner_fct.
    input_fields-logical_key+8(16) = <fs_partner>-ref_partner_no.
    input_fields-logical_key+24(2) = <fs_partner>-display_type.
    input_fields-logical_key+26(2) = <fs_partner>-no_type.
    input_fields-fieldname = 'PARTNER_FCT'.

    Take a look at  Issue while changing activity partner in BAPI BAPI_ACTIVITYCRM_CHANGEMULTI
    Similar sort of problem.
    Note the reference to header mode in this message.

  • Issue while updating(Changing) quantity on line at quick sales order form

    Hi,
    I am facing a issue while changing quantity ordered on the order line in quick sales order form. (R12.1.3)
    Although the same logic works exactly as required in 11.5.9.
    There is a custom logic, post booking line status is Awaiting Shipping.
    Now when quantity is changed +(Saved), the status changes to a custom state but at the same time a new row is created with the same line id but different reservation id in the MTL_RESERVATIONS.
    The quantity here is the difference between the original quantity and the new entered quantity.
    And post completion of the custom logic the original row is updated, but being there a additional row the quantity reserved at the shipping tab comes wrong.
    Our requirement is of update which is happening but not the additional insert which is going into MTL_RESERVATIONS.
    The logic is perfect in 11.5.9 and no additional insert is being made.
    Kindly help and give some ideas for the possible reason the issue.
    Please ask for more information if required.
    Thanks,
    Vishal

    Hi Mahendra,
    I have gone through the note id that you have given. sorry to say that, that is refering to diffrent issue.
    Actually what i did is, At form header level, I have hide the fileds using the folder options. once after changes I have closed the form and re-opened it. by that time I can see that Button names got changed in bottom of the "Quick sales order form". Not sure how it become changed. there five buttons over the form, only two button names got changed.
    Kindly suggest any other options.

  • Error while changing PO in SRM extended classic Version 5.0

    Hi Guys,
    we are facing issue while changing PO in SRM , this is extended classic with version 5.0.
    The system status is active() is error message and PO remains unchanged. Kindly help to resolve this issue. we have an approval for even PO if a user changes the qty in the PO then it calls the approval WF logic.
    Thanks
    Srujank

    Hello Srujan,
    Go through the following thread:
    Re: PO status change
    Hope it helps.
    Thanks,
    Neelima

  • Activity Journal mapping in BAPI_ACTIVITYCRM_CHANGEMULTI

    Hi All,
    I am trying to map the Activity Journal tab in the activity using the bapi BAPI_ACTIVITYCRM_CHANGEMULTI and the parmeter journal .But i could find only very less feilds in this structure.
    It will be great if some one could through some light into this on how to map this parameter.
    I am able to trigger other parameters like status , text and date.
    Thanks in advance.
    Anoop

    Hi Raviraj,
    Try using the Function module - CRM_ORDER_MAINTAIN. You need to pass the CHANGING parameter - CT_INPUT_FIELDS. This should contain all the fields that you want to change.
    After this you need to call the FM - CRM_ORDER_SAVE and then call the BAPI_TRANSACION_COMMIT.
    Regards,
    Prabhas.

Maybe you are looking for