Updating activity field in confirmation of po

Hi team,
while PO is getting created the data is getting transfered from SC with Activity field. But when we are trying to confirm the PO the Activity field is not getting updated.
In doc_change BADI piece of code has to be written to update the Activity field. Can you please help me in providing the solution.
Thanks & Regards,
Goutam.

Problem has been resolved. Error occured due to Valuation grouping code was missing for the plant.

Similar Messages

  • In TXN CO03, extract value for field "To Confirm" under tab "Qty/Activity"

    Hi,
    Can anyone help to extract value for field "To Confirm" under tab "QTY/ACTIVITIES" in tansaction CO03 at operatin level. There are three Activiti (CC-Set-up,CC-Labor Time & CC-Var-OH) under table control Activities. I need value of the field "To Confirm" for CC-Labor Time.
    From where I can fetch this value,
    1. Is this field available in some table?
    2. Is there any FM with which the same can be extracted.
    3. Any other method?
    Regards,
    Bibhuti.
    Edited by: bibhuti kumar on Feb 20, 2008 6:16 AM

    Hi,
    pls use below table's and get detals you want
    AFKO - Order header details
    AFVC - Order operation details
    AFVV - Order operation value/date's/qty details
    the relation is below
    Step1: AFKO; AUFNR-->AFKO-AUFPL
    Step2: AFVC; AFKO-AUFPL = AFVC-AUFPL
    take filed to APLZL,VORNR
    Step3: AFVV;AFKO-AUFPL=AFVV-AUFPL, AFVC-AUFPL = AFVV-AUFPL
    take filed to MGVRG,LMNGA,XMNGA,VGW02
    Step4: (MGVRG - (LMNGA+XMNGA)) * VGW02
    hope this will solve your problem
    Regards,
    Sankaran

  • How can I update data fields in a merged document ?

    Hi,
    I'm looking for a way to update the values of data fields in a merged document with a script just as you can do with the user interface.
    I don't find any method like "updateDataFields ()" in the DataMerge object.
    Si I try to invoke the menu action "Update Data Fields", but it fails. The script error message is: "Error 53762, the script is not active." On the contrary, the action works if I use the interface.
    Can anyone help me?
    Thanks in advance,
    FredIsnard
    PS : I work with CS5.5 and JavaScript.

    Hi!
    You might be looking for this one:
    DataMerge.mergeRecords (outputOversetReportFile: File )
    Merges records and produces an optional overset report.
    outputOversetReportFile: Data Type: File
    The path to the file in which to store the overset report. (Optional)
    Best regards,
    Andreas

  • Error while updating Date Field on Process Form.

    Hi,
    I am using java code to pre-pop date on the process form.First I used a java code whic took java.sql.date as input and returned the same java.sql.date.But it gave an error that:java.lang.String cannot be converted to java.sql.date.......
    So I changed the java code and now it takes string as input and returns java.sql.date. This code works fine for Pre-pop adapter and the date is populated on the process form.
    But when i use the same code in a Process Task adapter to update the date, then it gives the following error:
    ERROR [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.ADAPTERS - Class/Method: tcAdpEvent/updateDataSetValuePost encounter some problems: Adapter Execution Error: updateDataObjFieldValuePost: error updating UD_OID_USR_DATE_OF_BIRTH
    ERROR [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.ADAPTERS - Class/Method: tcAdpEvent/updateDataSetValuePost encounter some problems: {1}
    Can anyone suggest any method to update date field on process form?

    Hi Abhi,
    Can you tell me how you have implemented populating an UDF based on Prepopulation of another UDF. I have a similar kind of requirement. It would be great if you share your code or relevant part of it.
    Regards,
    Sunny Ajmera

  • How does the Updated by Field Work....

    Hi Experts,
    Can anyone help on how the *Updated By* field values are populated, specially when the values are updated through a Workflow.
    I read the following in the MDM Documentation.
    If trigger action is Record Add, Record Update, or Record Import for a workflow. The [System] is the creator and launcher of the job but is not a real user.
    This is even true if the Owner of the workflow is the Admin.
    After our server migration was done, instead of showing [System] as the Updated By it now shows the Admin.
    What could be the reason for this. Do i need to contact SAP or is there something that needs to be done at the respository level to get the Updated By field to work as expected.
    Regards,
    Aditya.

    Hi Aditya,
    As far as i am concerned, this is not true. Field Updated by type of User Stamp should only show user's which are there in User's table of MDM console under node Admin-->Users. When we don't have any User of repository with name System, there is no point it will show you user System for field Updated by.
    Query 1: Can you please confirm, do you have this User "system" available in your repository under node admin-->Users in MDM console ?
    Query 2: Also, After our server migration was done, instead of showing System as the Updated By it now shows the Admin.
    I seriously have doubt on this. Can you please check do you have really user System for existing records too? I mean you can do Free-form search for field Updated by with value system. I am sure even for existing records (whether in before server migration or in existing) you will not get single record with field updated by "system" . Can you please confirm on this ?
    May be I am wrong, so kindly revert with your findings and confirm above both queries..?
    Regards,
    Mandeep Saini

  • Automatic Credit Check- Credit active field in Item Category

    Hi All,
    In the current system, simple credit check is active and now the customer would like to consider the open sales order and delivery documents as well. Hence we are activating automatic credit check.
    The issue I am facing here is the credit active field is not activated in Item category level, since it has not been activated, the system is not performing the automatic credit check for the old as well as newly created sales order. If I activate the credit active field in Item category level its working fine for newly creating documents.
    But the credit check is not happening for the sales order which has been created in the past.Whether the credit active field not activated earlier is the reason behind this issue.
    Please let me know is there is any other way to perform credit check for the old sales orders as well.
    Regards,
    Mythily

    But the credit check is not happening for the sales order which has been created in the past.Whether the credit active field not activated earlier is the reason behind this issue.
    Credit check will not happen for the saved sales orders. It is not the reason because of credit active field was  not ticked for item category. you had performed Simple credit check for those orders,
    I assume you might be knowing that Simple credit check does not update open order, open delivery and open invoices etc, it updates only receivables. Even though you had ticked the item category the field credit active, it would not have performed.
    Now for old sales order anyway it will not perform the credit check, only thing you can do
    Run the program RVKRED88  in SE38  so that it will update the all sales values into FD32. This.This is the best way i think this will work. Please test this from your side. I did not check in my system.
    Why you want to perform the credit check on the sales documents which are already created and saved. as per me it does not make sense.
    thanks,
    Srinu.
    Message was edited by: Srinu S

  • Planned Activity and Actual Activity Fields & relevenat table

    Hello,
        Can any one pls let me know the field and Table names for the following two fields (need for preperation of a report):
    PLANNED ACTIVITY: -  Production Order confirmation Planned Activity column
    ACTUAL ACTIVITY: -   Production Order confirmation Actaul Activity column
    thanks & regards
    Chaitanya Rayaprolu

    Hi,
    Procedure :
    go to the feild(Cursor in feild) press"F1" for help ( Pop up will appear )
    click on "technical help"( Icon with cross planting of hammers)
    from the small popup u can get Feild name and table or Struc.
    copy the feild name.
    go to Transaction "se16"(Tables) enter "DD03L" ( data base table ) and press enter.
    enter the feild name ( Copied earlier ) in feild name block and execute(F8) the table.
    You will see all the tables and structures containing the particular feild.
    This is the best solution to be self sufficient.
    please close the thread after testing the solution...and appreciate your reward.
    Prakash

  • Bapi to update delivery date in confirmation tab in purchase order me22n tc

    Hi All,
    I am writing a BDC to update the data in confirmation tab for puchase orders for enjoy transaction.
    Please let me know how to updated delivery date in confirmation tab in purchase order(ME22N) using a bapi.
    I tried using BAPI_PO_CHANGE but found no parameter related to confirmations tab.  this BAPI has every thing to update like header data, item data, scheduling data..... except confirmation.
    So please let me know how to update the data in confirmation.
    We need to use only enjoy transaction ME22N not ME22 in BDC thats why we are looking for a BAPI.
    Regards,
    Venkat

    Hi
    Check the table parameter POCONFIRMATION in BAPI_PO_CHANGE
    U can see the field DELIV_DATE in the structure BAPIEKES.
    DELIVERY_DATE in the structure BAPIMEPOSCHEDULE as well.
    Regards,
    Dwaraka.S
    Edited by: Dwarakanath Sankarayogi on Feb 5, 2009 7:57 AM

  • Update activity..

    hi experts,
    i need to develop the rfc where i am taking activity ID, and 2 custom fields : SKU ID and SAP Vendor ID.
    SKU ID is present in  activity and sap vendor id is present in opportunity.
    ill get the opportunity id through activity id using 'CRM_ORDER_READ'.
    my issue is i need to update both the custom fields SKU_ID and sap_vendor_id.
    please help me with the bapi or a class that would update these custom fields.
    thanks,
    regards,
    akshay ruia.

    hii,
    thanks for the reply.
    i tried to update the field using 'CRMD_ORDER_SAVE'. But i am not able to see any changes in the activity order.
    code is as follows :
      IV_INITIALIZE_WHOLE_BUFFER       =
      IV_INIT_FRAME_LOG                =
      IV_LOG_HANDLE                    =
      IV_KEEP_LOCK                     = FALSE
    IMPORTING
      ET_INITIALIZED_OBJECTS           =
    EXCEPTIONS
      ERROR_OCCURRED                   = 1
      OTHERS                           = 2
        it_opport_h                   = it_opp_h
    IMPORTING
      ET_EXCEPTION                  =
    ***********maintain activity
      wa_act_h-ref_handle = '0000000000'.
      wa_act_h-ref_guid = guid.
      INSERT wa_act_h INTO TABLE it_act_h.
      cw_order_h-handle = '0000000000'.
      cw_order_h-guid = guid.
      cw_order_h-zzfld00001k = sku.
      INSERT cw_order_h INTO TABLE ct_order_h.
      cw_input-ref_handle = '0000000000'.
      cw_input-ref_guid = guid.
      cw_input-ref_kind = 'A'.
      cw_input-objectname = 'ACTIVITY'.
      wa_fieldname-fieldname = 'ZZFLD00001K'.
      INSERT wa_fieldname INTO TABLE it_fieldname.
      cw_input-field_names = it_fieldname.
      INSERT cw_input INTO TABLE ct_input.
    *cw_input-LOGICAL_KEY =
    CALL FUNCTION 'CRM_ORDER_INITIALIZE'
    EXPORTING
       IT_GUIDS_TO_INIT                 = it_header_guid
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      CALL FUNCTION 'CRM_ORDER_MAINTAIN'
       EXPORTING
         it_activity_h                 = it_act_h
       CHANGING
         ct_orderadm_h                 = ct_order_h
         ct_input_fields               = ct_input
       EXCEPTIONS
         error_occurred                = 1
         document_locked               = 2
         no_change_allowed             = 3
         no_authority                  = 4
         OTHERS                        = 5
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      wa_save-GUID = guid.
      APPEND wa_save TO it_save.
    CALL FUNCTION 'CRM_ORDER_SAVE'
      EXPORTING
        it_objects_to_save         = it_save
    EXCEPTIONS
       DOCUMENT_NOT_SAVED         = 1
       OTHERS                     = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

  • How to update Activity POC Weight (AFVC-EVGEW)

    Hi
    I need to update Activity POC Weight, Which BAPI or Function Module sould i use?

    The structure of this bapi does not have this field to be modified
    Help-me

  • Updating existing fields in ODS

    Experts,
    I would like to update existing fields in the ODS after doing some calculations if a new record that is being loaded meet a certain condition. In turn I would want to update the record being loaded with a value from the record in the ODS just updated. Can someone tell me a way without having to resort to writing a separate code in ABAP to do this in the transfer routines. Also if you could provide example code for such a routine.

    Hello Rue,
    Your code in start routine should look like this
    DATA: it_tab like <active table of ODS> occurs 0 with header line.
    select * from <active table of ODS>
            into corresponding fields of table it_tab.
    loop at DATA_PACKAGE.
      read table it_tab with key <field> = DATA_PACKAGE-<field>.                            
      if sy-subrc eq 0.
        <logic for processing data>.
      endif.
    endloop.
    If you need assistance in code for logic for processing data, please post the logic.
    Hope it helps.
    Regards,
    Praveen

  • How to update screen fields dynamically

    Hi,
    Can any one help me in updating screen field dynamically using so_expr, so_where,so_flds

    Hi,
      Use this type of logic. Though this code is for selection-screen, but you can use this type of logic for screens by using screen table and implement this logic in PAI.
    REPORT z_sdn.
    PARAMETERS:
      p_num RADIOBUTTON GROUP rad1 DEFAULT 'X' USER-COMMAND abc,
      p_char RADIOBUTTON GROUP rad1.
    PARAMETERS:
      p_num1 TYPE i MODIF ID num,
      p_num2 TYPE i MODIF ID num,
      p_char1 TYPE c MODIF ID chr,
      p_char2 TYPE c MODIF ID chr.
    AT SELECTION-SCREEN OUTPUT.
      IF p_num EQ 'X'.
        LOOP AT SCREEN.
          IF screen-group1 EQ 'CHR'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-group1 EQ 'NUM'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    Regards
    Abhijeet

  • Short/Exc. Rcpt not getting updated when all OPIDs confirmed for partial qty

    Hi Friends,
    I need your inputs about 'Short/Exc. Rcpt' updation in the Production order once partial confirmation is done.
    Example :
    Order qty 10
    I have OPID  0010        confirmed yield 4  confirmed scrap is 1
             OPID 0020         Confirmed yield 4
    I gone through the F1 on this field it will be get updated only after the final confirmation, i tested that its updating only after final confirmation status
    on the order/operation.
    My client seeing problem that even though scrap confirmed, but in MD04 this quantity shown as open pproduction order qty as 6 (excluding scrap confirmed it should be 5).
    Please let us know what setting needed for this field 'Short/Exc. Rcpt' updation even after PCNF, PDLV status.
    Thanks in advance for your quick response.
    Nag

    Hi Arnab Banerjee,
    In Sechedule line item posnr give the posnr value intead of 'X'.
    wa_order_schedules_in-sched_line = wa_salesschedu-etenr.
    wa_order_schedules_in-itm_number = wa_salesschedu-posnr.
    wa_order_schedules_in-req_date = wa_salesschedu-edatu.
    wa_order_schedules_in-req_qty = wa_salesschedu-wmeng.
    APPEND wa_order_schedules_in TO it_order_schedules_in.
    wa_order_schedules_inx-sched_line = 'X'.
    wa_order_schedules_inx-itm_number = wa_salesschedu-posnr instead of u2018Xu2019
    wa_order_schedules_inx-req_date = 'X'.
    wa_order_schedules_inx-req_qty = 'X'.
    APPEND wa_order_schedules_inx TO it_order_schedules_inx.
    and do follow for all posnr = posnr value instead of X.
    Cheers,
    Naveen.

  • Getting a permission error while updating a field.

    hi,
    I want to update a field in OIM and push the same to OID. When i try to update it for like 20 times it woks for 18 times and doesnt work for couple of times. I check the log and i get the below error.....
    *Caused by: javax.ejb.AccessLocalException: [EJB:010160]Security Violation: User: 'xelsysadm' has insufficient permission to a*
    ccess EJB: type=<ejb>, application=Xellerate, module=xlDataObjectBeans.jar, ejb=tcLookupOperations, method=create, methodInte
    rface=LocalHome, signature={}.
    at weblogic.ejb.container.internal.MethodDescriptor.checkMethodPermissionsLocal(MethodDescriptor.java:573)
    at weblogic.ejb.container.internal.StatelessEJBLocalHome.create(StatelessEJBLocalHome.java:60)
    at com.thortech.xl.ejb.beans.tcLookupOperations_u50o5o_LocalHomeImpl.create(tcLookupOperations_u50o5o_LocalHomeImpl.j
    ava:70)
    Kindly help me to fix this.
    Thanks
    thilak

    http://bbs.archlinux.org/viewtopic.php?id=83076

  • Error in updating ALV field catalog in selection tool for Planning Book

    Hi ,
    I am Implementing BADI  '/SAPAPO/SDP_SELECTOR' to upload Custom Fields Data in Planning Book Selection Window under APO Location Product. These Custom Fields are maintained in Custom Table.So from Table whatever Custom Fields are availabe all the fields needs to be available in for selection. Once selection is done the same data to be uploaded into Planning Book.
    This BADI is working Fine upto 4 fields but if any extra fields are added in the table 'Error in updating ALV field catalog in selection tool' error Pop Up is coming. Here i am using Folloowing Methods
    1). INIT_OBJECT_LIST
    2). F4
    3). LOC_PROD_VALUE_LIST
    Please help on the same if u have any idea or clue.
    Thanks.

    Hi Srinivas!
    Where did you get your implementation from?
    It would be nice if you could debug your code!
    For the F4 method, have you seen this note?
    Note 544904 - Sample source code f.BAdI /SAPAPO/SDP_SELECTOR ('F4'method)
    Also check this note. It contains selection modifications in the BAdI:
    Note 376902 - SDP selector: Basis corrections for BADI
    I do not know your release and support package in your SCM, but you can find a lot of notes related to this BAdI.
    Thank you!
    Will
    SCM Support Consultant

Maybe you are looking for

  • HELP my Ipod keeps on saying it's corrupt and wont restore

    My Ipod won't restore by pressing both the middle button and the menu button. It say's it's corrupt. I think it might of died because i've had it for one year and a couple of months. If it has, what can I do with it?

  • Sales orders with # signs

    When you're posting sales order documents to the system, normally would you make sure the # signs are not saved with the data field entries? How do the # signs get there or are these normal? I would think the description texts or any texts would allo

  • Adobe AIR Installer.app and Comcast ID

    Has anyone had trouble with installing the Adobe AIR Installer.app in order to have a comcast ID on your computer and TV?

  • JSF 2.0 Custom security tag

    We are migrating a JSF 1.2 application to JSF 2.0. Earlier we have developed a custom security by extending BodyTagSupport. In JSF 2.0 I have replaced BodyTagSupport with TagSupport and no compilation issues. In my taglib.xml if I configure this Tag

  • My BB Torch 9860 freezes while it reboots and refuses to turn on

    My BB torch 9860 froze 4 days back while a normal hard reboot. it refuses to turn on freezes and a particular spot on the bar while rebooting. i cant update the software or do nothing as it requires the fone to turn and it refuses to do so. Please he