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
Similar Messages
-
MIGO - change number range before saving
hi folks
Does somebody know a possibility in ECC5.0 to change the number range object just before saving the material document in MIGO?
an userexit, BADI, customer function?
Thanks a lotcheck this
MB_DOCUMENT_UPDATE
regards
Prabhu -
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
BogumilaHi,
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 -
How to change order header data before SAVE in CRM 2007
Hi,
I want to modify service order header value before saving it, to achieve this :
1) Implemented BADI ORDER_SAVE
2) in the method CHECK_BEFORE_SAVE, read order details by using FM CRM_ORDER_READ and done all validations.
3) Now i want modify one field value. how to do that ?
i came to know that by using FM CRM_ORDER_MAINTAIN or CRM_ORDERADM_H_MAINTAIN_OW data can be update/modify.
Is this right ? what are the parameters i need to pass and exactly in which method i have use this FM.
I want to pass the value in CRMT_ORDERADM_H_WRK(ET_ORDERADM_H) structure i.e. only for one filed.
Please let me know how it can be done.
Thanks
BhanuHi,
I am using following code, please correct if it is wrong.
DATA : IS_ORDERADM_H_COM TYPE CRMT_ORDERADM_H_COM,
CT_ORDERADM_H TYPE CRMT_ORDERADM_H_COMT,
IT_INPUT_FIELDS TYPE CRMT_INPUT_FIELD_TAB,
WA_INPUT_FIELDS TYPE CRMT_INPUT_FIELD,
IT_FIELD_NAMES TYPE CRMT_INPUT_FIELD_NAMES_TAB,
WA_FIELD_NAMES TYPE CRMT_INPUT_FIELD_NAMES,
IT_SERVICE_H TYPE CRMT_SERVICE_H_COMT,
WA_SERVICE_H TYPE CRMT_SERVICE_H_COM.
After reading order header data from "'CRM_ORDER_READ", pass header data to below structure
MOVE-CORRESPONDING EW_ORDERADM_H TO IS_ORDERADM_H_COM.
IS_ORDERADM_H_COM-ZZFLD00000Y = '123456'. <== want to save value in this field created on service header screen by using AET
APPEND IS_ORDERADM_H_COM TO CT_ORDERADM_H.
WA_SERVICE_H-REF_KIND = 'A'.
WA_SERVICE_H-REF_GUID = EW_ORDERADM_H-GUID.
WA_SERVICE_H-MODE = 'B'.
APPEND WA_SERVICE_H TO IT_SERVICE_H.
WA_INPUT_FIELDS-REF_GUID = EW_ORDERADM_H-GUID.
WA_INPUT_FIELDS-REF_KIND = 'A'.
WA_INPUT_FIELDS-OBJECTNAME = 'ORDERADM_H'. <= Is this right ?
WA_INPUT_FIELDS-LOGICAL_KEY = ? what is nothing but logical key
WA_FIELD_NAMES-FIELDNAME = 'ZZFLD00000Y'.
WA_FIELD_NAMES-CHANGEABLE = 'X'.
APPEND WA_FIELD_NAMES TO IT_FIELD_NAMES.
WA_INPUT_FIELDS-FIELD_NAMES = IT_FIELD_NAMES.
APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS.
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
IT_SERVICE_H = IT_SERVICE_H <= is this required ?
CHANGING
CT_ORDERADM_H = CT_ORDERADM_H
CT_INPUT_FIELDS = IT_FIELD_NAMES
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.
awaiting for your replies
Thanks
Bhanu
Edited by: Bhanupracash on Apr 6, 2011 2:14 PM -
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,
SvenHi,
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. -
Read header text before saving delivery during creation
Dear All,
Could you please suggest, how to read the header text before saving the delivery during creation.
Regards,I dont think you can do it before saving the delivery but you can after saving the delivery.
Check out the program MV50AFZ1 - There are two user exits "userexit_save_document" and "userexit_save_document_prepare" .
To read the text (as far as i know), you will need the document number (user READ_TEXT function module).
Document number is not available in user exit "userexit_save_document_prepare" but it is available in "userexit_save_document" .
I dont know what is your requirement but you can choose from the above options. You can read the text from save_document user exit but the delivery was already saved.
good luck -
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.PHi
<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 -
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,
SatyamHI 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 -
Changing Item Values before saving Purchase Requisition in me51n, set_data function
Hello,
I have written a user exit, which is called whenever changes are made to a purchase requisition. User Exit is MEREQ001 , function module EXIT_SAPLMEREQ_010 . My requirement here is that the Requisitioner should be 135 for every PR item under certain conditions. Therefore whenever there is any change made to the PR, before saving the PR item, I need to set the Requisitioner to 135, give a status message saying that the Requisitioner is set to 135 and save the Pr with the changed values. Following is the code I have written in EXIT_SAPLMEREQ_010. However, the set_data function called below does not change the PR values. Pls help
data: lt_item type mmpur_requisition_items,
wa_item type mmpur_requisition_item,
wa_itemdet type mereq_item,
wa_itemref type ref to if_purchase_requisition_item,
w_message type i.
constants: c_135 type afnam value '135'.
call method im_req_header->get_items
receiving
re_items = lt_item.
loop at lt_item into wa_item.
wa_itemref = wa_item-item.
wa_itemdet = wa_itemref->get_data( ).
if wa_itemdet-afnam ne c_135.
w_message = 1.
wa_itemdet-afnam = c_135.
call method wa_itemref->set_data( wa_itemdet ).
endif.
endloop.
IF w_message = 1.
MESSAGE 'Requisitioner defaulted to 135 for all items' TYPE 'I'.
ENDIF.Hi Sachin,
I am able to get a reference to if_purchase_requisition_item in my code (wa_itemref ) and am also able to access each of the line items in the PR in the work area wa_itemdet.
At this point in the code ( wa_itemdet-afnam = c_135 ) , the work area value is set to '135', However, call method wa_itemref->set_data( wa_itemdet ), does not change the values of the work area wa_itemdet . Pls help -
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. -
How to validate plan data before saving the data
I have a total row in my planning layout which is a summation of plan data in 2 other rows. While saving the data, I should check whether the total is 200 and if not the data should not be saved. How can I achieve this! Any help would be appreciated.
Regards,
Tipo.Hi,
I'm also facing the same problem in my development...I tried above all the ways,but we cannot stop saving the wrong data.In this case you have to write the java script for save button, before saving the data if it is correct then go for the next step to save other wise throw an error message or without save the data .
You need to write the JAVA script for save button,in this code you need to read the data form the layout and check the total value, i am not sure if layout is dynamic how we can achieve this???.
My development also stopped for this issue,In my case i have two layouts ,one is for actual and another one is for Planing layout(Function - Distribution equally),using the fox code i succeed to read and throw an error message for incorrect data but i can not stop to saving for incorrect total data.
Once you solved this problem please post the message in SDN.This type of requirements is very tough and we need to share to our friends.
Thanks. -
User exit, badi or enhancement to validate data before saving for qm02
Hi,
Currently, I have a requirement to validate the data of a notification before saving data in Tcode qm02.
I have found an user exit to check data for tcode qm02. It works for task tab, I mean I can get the data under task tab of qm02 and do the validation. However, for the tab processing: I want to validate the partner name before saving but I can not get the list of partners which is in Processing tab.
Please let me know if you could show me the user exit, enhancement, or Badi so that I can validate the data under processing tab in qm02.
Thanks in advance,
Hung ToHi Keshav.T,
Currently I am using this exit to validate data for the tab "Task". However, for the tab "Processing" I can not get the data, let say Partner, to validate.
Thanks,
Hung To -
Changing Header data in the part appraisal document
I have implemented a BADI using the definition HRHAP00_ACC_HEADER. The next step is to ensure that at Category level the Changes to Part Appraisal enhancements is selected on the Enhancements tab page. However, the enhancement is not displayed in the tab selection - please tell me how to display it or do i need to add it to a specific table?
Hello,
the enhancement areas allowed under "further template behaviour" are:
BA Column Access
BB Pushbutton Access
BC Business Check
D1 Default Appraiser
D2 Default Appraisee
DE Default Execution Period
DN Default Appraisal Name
DP Default Part Appraiser
DR Default Review Date
DV Default Validity Period
PM Maximum Number of Part Appraisers
So:
1) choose one of these areas for your enhancement
2)Locate this area in T77HAP_EX_AR, double click on it and add a new entry with the filter value for the BADI you want (note that the matchcode will not show it, but you can enter the name of the filter in field "enhancement". When you hit "enter" it will be recognized and the descriptive text will be automatically entered in field "text").
3) Enable your enhancement at category level
4) Select it from "further template behaviour" (you should add a row in the pop-up window, note that first the system asks for the enhancement area so be sure to choose the one you chose before in T77HAP_EX_AR).
5) Enjoy!
Hope it helps
Regards,
Rodrigo -
File- XI- IDoc: Idoc header data not saved correctly
Hi guys!
I have a very strange problem:
I have a file to xi to IDoc scenario. Everything seems to be fine, IDoc is created in target system, but with strange error: <MESCOD>XX</MESCOD> segment is not written in IDoc header segment. This segment is available in message sent to ECC (after mapping), so there is no problem with ommiting the segment in mapping. But it's not saved.
This scenario worx fine in QA, but not in PRO.
Any ideas, what to look at?
Thanx a lot! OlianHi,
check the IDoc which was in PROD. and see the ibound status and actual reason .
depending upon the actual status you can resolve the issue.
Chilla -
How to change header data in screen
hi! all
i have a screen which has header details (i,e material.no, material desc which is i/o fields not-required(displays the text not gets the input from the user) ) and the Detail (i,e details about materials - no.of rejection in this material and its defect code which has to be entered by user).
now, i have to change the header details to the number of materials selected where as the detail should be entered by the user as per the header details.
1. select materials
matnr1
matnr2
matnr3
2. place the matnr1 in header of the screen.
matnr1
matnr1_desc
rej_qty defct_code defect_group
in the same screen when i click NEXT button it should display (the header details alone has to change)
matnr2
matnr2_desc
with same detail column.
rej_qty defct_code defect_group
header has to change (repeat to count of materials selected)
how to do it, kindly kelp me.
Regards,
Nagulanhi
good
Create a style with ur fonts in TC SE72.
Then in standard text(SO10) assign this style
(Format->Change Style). Then all the formats created in ur style will be avaliable in Standard text also.
thanks
mrutyun^
Maybe you are looking for
-
Export in Query Ready mode not working in 11.1.2.1
Hi, I have created a report with 3 grids; Grid 1 - populates employee information, Grid 2 - populates employee salary Grid 3 - calculation of Grid 1 and Grid 2. In Report I am able to see the data, but when I am using the "Export in Query Mode" optio
-
SOLVED: Mac Mini 2011 video freeze
I purchased a 2011 Mac mini 2.5 ghz core i5 about 5 months ago. I added 8 gigs as soon as I got it. Now, all was good. The ram was excepted and everything ran well. After about a month in, the problem started. While watching a movie or editing music
-
Restore from Recovery DVD fails
I am working on a customers Qosmio QF10-100, the original 60gb Fujitsu hard drive of which was failing as confirmed by a chkdsk -r on the drive and the amount of files repaired. Although the laptop booted after a repair lots of programs would not run
-
I have headphones with two adapters, can they be used with a Mac Pro, and where do they go? There are two ports in the back and I tried another pair of headphones that I hate because they are over the ear and horribly uncomfortable, but plugging the
-
PO- Why PO still allow to change after Delivery Completed has ticked.
Dear All, I'm doing functional testing for MM, but i realised that the PO still allow to change after delivery completed has ticked. Can i know if there is a way to restrict any change after any good receiving or delivery completed? Thank you very mu