Service order IW32 - change header data while saving with UE

Hello
I have the following problem. I need to clear while saving
order in IW31/2 one single fields this is CAUFVD-ABGSL
but I cannot find any user exist that could allow me to CHANGE this field I tryied to use :
IWO10009 IH-Auftrag: Kundenprüfung zum Zeitpunkt 'Sichern'
but it has only CAUFVD as importing parameter *"  IMPORTING
*"     VALUE(CAUFVD_IMP) LIKE  CAUFVD STRUCTURE  CAUFVD
while I need to change one field while saving order
Did somebody dealt with this problem
I will be really gratefull for help
Best regards
Bogumila

Hi,
I've had a request for one of my customers to automatically change this field as well.
Apparently, it was possible to change the CAUFVD structure, but it wasn't updating the database table AUFK.
First of all, I wrote a new function module to update it straight in the AUFK database table, using the order ID and the provided RA key. This because using FM BAPI_ALM_ORDER_MAINTAIN threw an error.
FUNCTION Z_0PM_CHANGE_RA_KEY.
*"*"Update Function Module:
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(IV_AUFNR) TYPE  AUFNR
*"     VALUE(IV_RA_KEY) TYPE  ABGR_SCHL
     UPDATE aufk SET abgsl = iv_ra_key WHERE aufnr = iv_aufnr.
ENDFUNCTION.
Then in user exit PPCO0001 - FM EXIT_SAPLCOBT_001 I'm calling this in an update task, to avoid any current object locks while saving. It's working both in transactions IW31 and IW32:
SELECT SINGLE absl FROM z0pmrakey
        INTO lv_ra_key
        WHERE auart = lv_auart_rep
          AND ilart = lv_ilart_rep
          AND eqtyp = lv_eqtyp_rep.
      CALL FUNCTION 'Z_0PM_CHANGE_RA_KEY' IN UPDATE TASK
        EXPORTING
          iv_aufnr       = lv_aufnr
          iv_ra_key      = lv_ra_key.
In case you have any questions, please ask.
Kind regards,
Joris

Similar Messages

  • MIGO change header data before saving

    Hi all,
    I want to update header data (budat) before saving the material document with MIGO.
    Has anybody an idea?
    I tried with Badi: mb_document_badi or similar user-exit
    MB_CF001 but with none of these I can CHANGE header data.
    Is it possible?
    Thanks a lot!

    check this
    MB_DOCUMENT_UPDATE
    regards
    Prabhu

  • User exit to modify a service order (IW32)

    Hi
    I require a user exit to modify a service order (IW32) that is generated via the repair procedure functionality linked to a Sales order.  
    I need to change at the operation level:
    1-      Add an operation with the service material from the sales order.  Get the purchasing group data from the material master.
    2-      Change the first operation -  replace the default purchasing group
    THanks

    Sid,
    [PM/CS User-Exits etc|http://pjatkin.users.btopenworld.com/documents/PMCSUserExits.pdf]
    Might be possible by using IWO10009 (at save user-exit) with function modules:
    CO_BP_AFVG_BT_FETCH
    CO_BT_AFVG_UPDATE
    PeteA
    [www.pjas.com]

  • BADI ME_PROCESS_PO_CUST for changing header data

    Hello Experts,
    I'm using Method PROCESS_HEADER in Badi ME_PROCESS_PO_CUST in order to change some header data.
    I want to change header data depending on the partner data which are on header level.
    It works fine as long as there are data changed in the header or item level and not only on the partner screen.
    The method in this Badi isn't processed if only partner data are changed. But for me it is necessary to set a special field on the header depending on the partner data.
    Regards,
    Sven

    Hi,
    Firstly, for changing Header data without any INSERT/UPDATE?MODIFY statement, badi - ME_PROCESS_PO_CUST  will not be useful.
    As method you mentioned has no header parameters under CHANGING / EXPORTING clause.
    You can use the badi which has the parametrs you want in either change/ Export mode. It can be defined under table also.
    Below is the list of important badis gettign called, however none of them contains header values in change/export clause.
    ME_CCP_ACTIVE_CHECK
    MD_STOCK_TRANSFER
    ME_DEFINE_CALCTYPE
    ME_PO_PRICING
    ME_FIELDSTATUS_STOCK
    ME_COMMITMENT_STO_CH
    ME_COMMITMNT_PARKING
    ME_INFOREC_SEND
    ME_CHECK_SOURCES
    ME_PURCHDOC_POSTED
    Instead you can use enhacement MM06E005  Customer fields in purchasing document.
    Create a project under Transaction CMOD.
    Assign enhancement as Project component.
    You'll find Exit 012. At time of save you can change header im_ekko based on you parterner data tab.
    Regards,
    Amee.

  • MB_MIGO_BADI change header data in tcode MIGO

    HI Experts,
    I have a requirement to change the feild posting date(BUDAT) in the header data while doing migo.
    For this i have implemented a badi MB_MIGO_BADI->IF_EX_MB_MIGO_BADI~PAI_HEADER. This method has the field is_gohead-budat. but when i'm changing the value in the method,  its giving an error message saying you cannot change filed BUDAT.
    Can anyone help me how to achieve this change?
    Regards,
    Satyam

    HI Harald,
    Thanks for your active reply.
    I tried exit  EXIT_SAPLMBMB_001. But it is not getting called while doing MIGO. I tried putting a break-point.
    I followed the following procedure. Kindly correct me if I'm wrong.
    1. In tcode CMOD, I created the project: ZMD.
    2. In Enhancement assignment i have given the enhacement name as MB_CF001.
    3. In component section the exit EXIT_SAPLMBMB_001 has include ZXMBCU01.
    4. I have written the following code in the include :
         break-point.
            if sy-UZEIT GE '000000' AND sy-UZEIT LE '060000'.
             XMKPF-BUDAT = sy-datum - 1.
              endif.
    5. I activated the project ZMD.
    When i execute the tcode MIGO and post the document, ideally it should stop at the break-point. If it does not stop than that means the exit is not being called during the run time.
    Could you kindly guide me on this.
    The movement type for the GR is 101 and is done for outbound deliveries.
    Thanks & Regards,
    Satyam

  • MBO: Change Header Data

    Hi all,
    We are using the BADI, CHange Header Data (HRHAP00_ACC_HEADER--PART_APPER_ACCESS_2).
    The selection screen button of 'further particpant'(others) is not enabled when the Change header data button is clicked.
    we have created a filter and turn,
    <i>s_header_cust_display-others = c_output_mode_change.</i>
    If there is further participant, the selection screen button got enabled.And if furtherparticipant table is initial, the button is not enabled.
    I want to enable the furtherparticipant button regardless of the table entry.How to do it?
    Points assured for helpful answers.
    Regards,
    Jothi.P

    Hi
    <b>First read the documenatation of this BAPI in SE37 Transaction, by pressing F9 Key.
    Also do a where-used list for this BAPI and then code accordingly.</b>
    Hope this will help.
    Please reward suitable points.
    Regards
    - Atul

  • How to track Service Order Status Change (IW31/IW32).

    I have a requirement to send the customer an Email if the status of service order has been changed say from unconfirmed to confirmed. So i have to find out whether the status of the service order has been changed on the current date.
    As per my understanding, Changes corresponding to any object are stored in tables CDHDR and CDPOS if the change document creation is enabled for that object. But in case of service order status, the changes are not being captured in these tables because change document creation is not enabled for the data element (J_STONR) of service order status.
    Anyone having any knowledge about it please help me.
    Edited by: Gagan Garg on Feb 23, 2009 6:52 AM

    Hi,
    Thanks for your reply. I have found out the way to track the service order changes. Function module STATUS_READ_MULTI can be used for the same. Pass service order number in OBJNR_TAB and the change document for status is returned in JCDS_TAB

  • Hoe to see if an USER-Status of service order is changed

    Hi,
    for service order we use a user-status profile. Every things worcs as we want.
    Now the question is: how can i see if the user-status is changed?
    First i use IW31 to create an service order. Next day the user-status will be changed (IW32).
    Where can i see, that it is changed?
    Regards, Dieter

    When user and system statuses are changed, records of JEST are updated and records are inserted into table JCDS, check this table.
    - JEST - current status
    - JCDS - log of status - with date/time/user
    In transaction IW32/33, you can see the history of statuses: click on "information" icon in status line, then on "display status" screen, go to menu : Extras, Change document, All or For a selected status.
    Regards,
    Raymond

  • In Aperature, how do you keep photos in the order you changed them to while editing? When you go to burn them to a disk, the order changes from what you see on the screen.

    I need to know how to save my photos to a disk for a client in the order I changed them while working on them. I photographed a party with another photographer and joined both photographers photos. Now I want to keep them in the order the event took place and how I rearranged them.

    The exported photos will show on the disk like any sequence of files, sorted by date, name, filetype, etc. To help your client to sort them according to your sequence, rename the files and append a sequence number. You can rename them on export by using an export preset, for example the name format "Custom name with index". That will append a number to the filename, according to the position in the album you are exporting.

  • Service Order status change thro' Action

    Hi all abaper
    After completing billing, thro the action I am changing service order user status as completed. i hv written my code in class method.
    After billing as action runs my code from method execute and changes the status properly and gets save into system but action status shows incorrectly processed and comes in red colour in action monitor. following is my code   plz help me        
    Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code
    Edited by: Rob Burbank on Oct 13, 2010 11:13 AM

    Are you processing status codes out of sequence?  Talk to your functional specialist or look at the status config for these documents...sounds like you're going to completed without first setting a status code that would have to be there prior to your status code...I seem to recall doing status changes for these documents that were a multi-step process...set TECO, then CLOSED or something like that?

  • Service order status change

    Hi,
    I am working on interfacing CRM with a third party system. The integration should trigger when the user status of the service order change to say "status1" or "status2".
    Also I want to update the user status programatically from another third party system.
    Quetion-
    1. Which function module/BADI can be called to update the User status?
    2. Which function module/BADI will be called after the User status updated?
    thanks in advance,
    KP

    Hello,
    Question 1.
    To update the user status, you can use crm_order_maintain or more specific CRM_STATUS_MAINTAIN_OW.
    Question 2.
    After the user status update, you can use the method after_change of badi CRM_ORDER_STATUS.
    You can also use transaction CRMV_EVENT and create your own after_change event with your own FM.
    Hope this will help you,
    Regards,
    Frédéric

  • FF67 problem, can't change statement date(statement saved but not post)

    I need to change the statement date of a bankstatement. I did not post the statement yet.
    I used a wrong statement date, and I want to change it, but I saved it after booking the second screen(the one with the
    statement items)
    When I look by Manual Bank Statement Overview I see the bankstatement, but it has no Posting complete remark yet, because it has not been postefdofcourse.
    The problem is I can't change the statement date, because when I try to Post then the systems gives an error because it does not accept the new statement date I want to use.
    Is there a way to solve this problem? The statement has not been posted yet, so I suprised I can't change the statement date.
    Anyway I hope somebody can help me out.

    I had to post them first because otherwise it looks I could not delete the statement.
    I saw no Id with only saving, that's why I post them. then the statement got an id.
    What do I have to choose to make it possible to delete statements, not posted yet.
    I guess I have to select something else because I did not see any Id to choose.
    I do a manual input of the bankstatements (no import).
    Whst's the best I can do now?  What do you mean with FI?
    I guess I can do a manual booking on the three(send/receive and general) bankaccounts to get the right position of the accounts?
    The bankstatements are ok(booked with ff67) only the three accounts I mention above have the wrong position.

  • BAPI for service order create/change

    Hi,
    I need to create and update service order on release 4.6C. I have searched for available BAPI but did not come up with anything. Searching the OSS and forums, I found that there are function modules BAPI_ALM_ORDER_CREATE and BAPI_ALM_ORDER_MAINTAIN available on release 4.7 . There are notes about downgrading these function modules to 4.6C (Note 655926 is one of them, search ALMBAPI).
    My question is, has anybody done this ? What all is part of this downgrade ? There are numerous correction notes, and did you have to apply those ?
    Any help will be greatly appreciated.
    Regards,
    Rajendra Salecha

    Hi Rajendra,
    The note 655926 you mentioned, clearly details all the steps involved in downgrading the BAPIs to 46C. You just have to follow the steps in that order and yes, you need to have all the notes that are mentioned in there, unless they are delivered as part of some support pack and you are on that support pack level already.
    Srinivas

  • How to changes baseline date in miro with Posting date

    Please tell me the procedure to change the baseline date in miro with posting date (EKBE-BUdat) on basis of  Purchase order No (EBELN) .
    I tried it by using user exit :-EXIT_SAPLKONT_011  Enhancement : LMR1M002 but got stuck somewhere .Please tell me how to work on this .

    hey guys my problem is solved by using a badi  " MRM_PAYMENT_TERMS" .In method "PAYMENT_TERMS_SET" writing the code .

  • Purchase order status tab(header data) field correction program

    Hi,
    Is there any correction program to correct status tab header details(purchase order - ME23N) ?
    There is a mismatch between order quantity,delivered quantity & still to deliver quantity, I want to correct these data.
    Please respond, if any thing can be done.
    Thanks
    Dipak

    Hi,
    Be careful,
    I have never heard of this being worng, however, sometimes it LOOKS wrong.
    For instance you can have
    ordered 100
    delivered 90
    still to deliver 0
    (Due to the use of the delivery completed indicator)
    You can also have
    Ordered 100
    Delivered 90
    still to deliver 0
    (due to the fact that one of the items was flagged as not GR relevant)
    So you really MUST make sure that the data is incorrect before you consider any action.
    this would be the first time in 17 years that I have ever heard of this data being worng (and that would be across MILLIONS of POs)
    Steve B

Maybe you are looking for