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
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 -
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. -
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 -
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^ -
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 -
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 -
Insertion of field to tcode MIGO
Hi,
I want to insert Issue date for TCode MIGO which is using structure GOHEAD. Please tell me how to do so??
Thanks n RegardsHi,
GO to SHDB transaction and record BDC codings for MIGO
Regards
Divakar -
Can any one tell me how to change the current row header in FB1LN tcode
Hi,
can any one tell me how to change the current row header in FB1LN tcode.
I want to show input date also in the layout.
Regards
MaveHi
I know two ways:
- transaction obvu: here you can insert new fields, but only if these fields are included in certain table (like BKPF, BSEG, BSIS.....
- if your field isn't included in those table, you have to modify the structure RFPOS and manage it in the BTE 1650. After updating RFPOS you have to run the program RFPOSXEXTEND to update the structure RFPOSXEXT.
Max -
Posting header data for MIGO thru badi
Hi,
I'm using badi ' MB_MIGO_BADI ' for posting header data for the T-Code MIGO.
I have created an extra tab for supplier details for header data. The details from dis tab should be stored in a ztable.
I have written the code for the same in the METHOD 'POST DOCUMENT' of the badi, but m unable to store the data in the ztable. niether is the code for display working.
kindly help.Hi,
you need to create an attribute where you will store data from your additional screen. In example there is an attribute GS_EXDATA_HEADER with structure MBLNR, MJAHR, BADI_NUMMER. So obviously the point is to enter some number on additional header tab screen. You can see that in the method PAI_HEADER that all data from screen are transferred to this structure and in the method PBO_HEADER are data transferred from internal structure to the screen. So in this internal structure you store the current values of the fields from your additional header tab. Now when you store material document you want to also store your additional data into database. Until this point you store it only in memory. Hence you prepare a new FM which will store this data to DB and you will call this FM in UPDATE TASK. Here is an example
CALL FUNCTION 'MIGO_BADI_EXAMPLE_UPDATE_HEAD' IN UPDATE TASK
EXPORTING
is_migo_badi_header_fields = gs_exdata_header.
Once again to summarize it:
1) Define your own structure to keep additional data as an attribute of BADI implementation class
2) Pass data from memory to screen and back using methods PBO_HEADER and PAI_HEADER
3) Store additional data into DB using FM called in UPDATE TASK from method POST_DOCUMENT
Cheers -
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 -
Change of custom fields in header data
Hi Experts,
How to change of custom fields in header data in frontend SRM for Process PO transaction ?
Help is appreciable.
Thank You.
Regards,SunuThank you for your replies.
There is one custom field in header data called 'SDN Number' of our PO for example and i would like to change this from 'SDN Number' to 'Login Name' as the logic for taking the value for this field should remain the same. Only the display text should change.
So, whenever i login into frontned SRM and process the transaction 'Process PO' i should be able to see 'Login Name' instead of 'SDN Number' in header data of the PO.
Hope i reaced my query in clear way.
Highly thanful for your replies.
Regards, Sunu -
Sales order header data change by using the ORDERS05 IDOC
Hello Team
I am getting sales order number and some code value from the legacy system. i need to check whether the sales order is avialable in SAP or not. if it is there, i need to update the CODE value (ie for example ABC100) in sales order header data> order data> your reference field. For doing this i am using the IDOC type ORDERS05 and message type ORDCHG message type.
Now i want to know what are the mandatory fields which i need to do the mapping for the IDOC ORDERS05, to change the sales order header data. please check and suggest me the required fields of the IDOC to be mapped, so that i can change the sales order header data.
Please correct me if i am doing something wrong here.
Regards
RjHello chirag
Thanks for your reply. My requirement is to change the sales order which is already avialable in SAP. Just i need to change the header data of the sales order, for example if i am getting the sales order as 1000 and CODE as ABC100. i need to change the Sales document number 1000 and put the code ABC100 in sales order header data>orders data>your reference field.
So now i want to know the below points
1. what are the mandatory fields for which i need to pass the values for the IDOC ORDERS05.
2. what is the user-exit used for picking up those values from SAP because i am getting only sales order number and CODE values from legacy system.
Please check and suggest me accordingly.
Regards
Rj -
User exit for billing to change vbrk header data on SAVE
Hi
I need to change vbrk header data on save in vf01
transaction, can some one send me the user exit,
also code if possible.
I have tried out RV60AFZZ it is entering the exit
but if i modify vbrk fields it does not get
reflected.
Thanks & Regards
Abhimanyu.LHave a look in include RV60AFZC
=> maybe you can use form USEREXIT_FILL_VBRK_VBRP. -
User Exit for changing Zterm while copying header data from VA01 to VF01
H i All,
I have a requirement where I need to copy sales order header data to invoice header data (VA01 to VF01). The field of interest to me is Payment terms(zterm). In case the customer belongs to a particular condition type grp then I have to modify the zterm in invoice header.
Kindly let me know which user exit I can make use of.Hi,
Check Exit V46H0001 SD Customer functions for resource-related billing
Also check BADI:
BADI_SD_V46H0001 - SD Customer functions for resource-related billing
Method: EXIT_SAPLV46H_003 Customer Function when Creating/Changing Header
Maybe you are looking for
-
I've searched these forums and finding bits and pieces of information so I'm hoping someone can help me out. I've successfully installed XI 3.0 on a new server. We're trying to get SSO to work from our custom application so that users won't have to
-
AMD 64 X2 3800+ and K8N Diamond
Hi, has anybody tried this combination of CPU and MB? On the CPU Support Page of this MB is written, that this CPU is still under testing, but I would like to buy this combination in a short time...does it work fine (with latest BIOS, of course) or i
-
QUERY JE_HEADER_ID and INVOICE_ID
Hello, I need to create a query that shows the JE_HEADER_ID , INVOICE_ID besides : journal NAME,.CURRENCY_CODE PERIOD_NAME,STATUS,JE_LINE_NUM ,CODE_COMBINATION_ID,.ENTERED_DR,.ENTERED_CR , .ACCOUNTED_DR,ACCOUNTED_CR,Line DESCRIPTION ,.SEGMENT1,SEGMEN
-
Why is LR 3.6 reversing the chronological order of my photos?
This is very odd behavior that started only last week. When I import new photos in the catalog, it reverses the chronological order in which they were taken - i.e., for photos taken on the same day, it would show the latest first. Any ideas? I don't
-
Jdev11g could not extract the archive since it is corrupted error code = 50
Dears, Please I need a help After I downloaded Jdeveloper 11g and I begun to run the EXE it gaved me this error "could not extract the archive since it is corrupted error code = 50" I downloaded it again the next day but with the same error and the s