Badi for updating Item Gross Weight (VL01N)
Hi All
I am using interface CHANGE_DELIVERY_ITEM and
FILL_DELIVERY_ITEM of defination name LE_SHP_DELIVERY_PROC to change the gross weight of delivery item. System is allowing me to change the gross weight in interface CHANGE_DELIVERY_ITEM but is not getting saved in the database.
Please Advice.
Ravindra Suvarna
Hi!
I have not seen any hint, that this is not possible. But this is difficult to say without own test data, so you have to make some more checks.
Just place a break-point in your coding and debug a little bit starting with your new gross weight. Look, where it is overwritten again. Maybe it's very soon / easy to find. Think about watch points, too (but there can be a lot of different tables involved).
Regards,
Christian
Similar Messages
-
User Exit or BADI for Updating Tax code (MWSKZ) using ME21N
Hi all,
I am trying to fin out an exit or badi for Updating Tax code (MWSKZ) and Unit of Measure in transaction ME21n.
The scenario is like this...
For Purchase Orders Tax code will be defaulted from Purchasing info record or contract or parameter id for that item-vendor-plant.
If the Tax Code is not defaulted and account assignment is blank then tax code on the PO is updated according to the below mentioned table
Table
Supplying Plant/ Receiving Plant Tax code
Vendor/Country
Any plant/vendor/
country 5050(NA) 20
2300 6700 E0
If the tax code on PO cannot be updated by the above table, then buyer needs to put tax code on the purchase order manually.
Thanks,
Shiva, BangaloreHi Siva.,.,.,
These r the exits.,..,which will be called while calling ME21N/ME22N/ME23N
EXIT_SAPMM06E_006
EXIT_SAPMM06E_007
EXIT_SAPMM06E_008
EXIT_SAPMM06E_009
EXIT_SAPMM06E_012
EXIT_SAPMM06E_013
EXIT_SAPMM06E_014
EXIT_SAPMM06E_016
EXIT_SAPMM06E_017
EXIT_SAPMM06E_018
U want to default some values while the Initial screen will come right,
while u Enter ME21N in command Prompt.,.,two exits will get triggerd,
EXIT_SAPMM06E_014
EXIT_SAPMM06E_016
If u want to Default some values u can use these two exits.,.
Try using EXIT_SAPMM06E_016.,.this will solve ur purpose.
and if the user changes some values on screen.,,and you want them to get reflected .,.,.that means if user changes and saves data .,.
While saving.,.,EXIT_SAPMM06E_012 and EXIT_SAPMM06E_013 will get triggerd
Try using EXIT_SAPMM06E_013.,,.it was somehow the same requirement as mine.,.,IN my case it worked fine.,.,
Regards
Debasish
Message was edited by:
Debasish Das -
Best way to update material gross weight
Hello guys,
I have a question, which is best to use to update material gross weight with an inbound interface? Proxy or Idoc?
With proxy we have seen the function BAPI_MATERIAL_SAVEDATA.
Wich kind of Idoc could be use? And what's the minimum information to send in the the idoc to update the material?
Many thanks in advance.
Regards,
Xavier.Hello Mithun,
I want to update the basic data of the material.
What is the minimum data for Idoc MATMAS05?
Regards,
Xavier. -
Need exit or Badi for updating Warranty data in IE02 while Prod Order conf.
Hi All,
I need a user exit or Badi for updating the Warranty data in IE02(Equipment Master) while production order confirmation(CO15)?
I need to update the Begin guarantee date from Production order and warranty master type in IE02 while confirming the production order.
Thanks,
SudhaHi,
Are you saying first create notification,then service order
and then Sales order.
But the requirement is create notification then sales order and when you go in va02 and while modifying the sales order and create service order.
Thanks & regards,
chetan. -
Reg. Exit/BADI for changing item data of PO in ME22N
Hi all,
My requirement is to update the field LABNR (Order Ack.) of few specific line items of a PO, in the Transaction ME22N, using Exit/BADI.
I have tried the BADI ME_PROCESS_PO_CUST. But the PROCESS_ITEM method of this BADI processes only the line item which has been changed/inserted in ME22N transaction. But my requirement is to update line items irrespective of whether that line item was "changed/not changed" during the process in ME22N screen.
Could you please suggest me some suitable Exit/BADI for this requirement.
Regards,
Anbarasan KThanks Martin.
Problem solved by implementing the method Process_Header.
1. Get the items from Header - im_header->get_items
2. Loop the item list and get the line item record - re_item-item->get_data
3. <- Logic to Update the line item - >.
4. Update the line item - re_item-item->set_data
Thank you very much.. Martin.
Regards,
Anbarasan K -
Code of ME_process_cust_Po BADI for checking item data?
Hi all,
While users are creating new PO in ME21N, I have to check the condition records for the Materials they entered.
If the condition record is not maintained for the respective material The creation of PO while saving it , should not be allowed and a message should be displayed.
Please mention the respective method and code to do this?
Thanks
Vamshi.Hi ,
this is the sample code for Item check, by using mm_messages_mac(include u can raise error msg based on the INFNR(info record) field.
DATA: ls_mepoitem TYPE mepoitem,
ls_customer TYPE mepo_badi_exampl,
ls_tbsg TYPE tbsg.
INCLUDE mm_messages_mac. "useful macros for message handling
here we check customers data*
ls_mepoitem = im_item->get_data( ).
IF ls_mepoitem-loekz EQ 'D'.
a physical deletion of the item was carried out. therrefor we have to*
delete customer data on the level of the item*
ls_customer-ebeln = ls_mepoitem-ebeln.
ls_customer-ebelp = ls_mepoitem-ebelp.
CALL FUNCTION 'MEPOBADIEX_SET_DATA'
EXPORTING
im_data = ls_customer
im_physical_delete_request = 'X'.
ELSE.
update/insert operation*
CALL FUNCTION 'MEPOBADIEX_GET_DATA'
EXPORTING
im_ebeln = ls_mepoitem-ebeln
im_ebelp = ls_mepoitem-ebelp
IMPORTING
ex_data = ls_customer.
check customers data*
check field badi_bsgru. This should be carried out only for new items. Once the PO is posted the*
field should no longer be changeable. This is done in Method FIELDSELECTION_ITEM.*
IF im_item->is_persistent( ) EQ mmpur_no.
IF ls_customer-badi_bsgru IS INITIAL.
Place the cursor onto field badi_bsgru. The metafield was defined in BAdI ME_GUI_PO_CUST,*
Method MAP_DYNPRO_FIELDS.*
mmpur_metafield mmmfd_cust_01.
mmpur_message_forced 'W' 'ME' '083' text-002 '' '' ''.
ELSE.
check whether the field is valid*
*SELECT SINGLE * FROM tbsg INTO ls_tbsg WHERE bsgru EQ ls_customer-badi_bsgru.*
IF NOT sy-subrc IS INITIAL.
mmpur_metafield mmmfd_cust_01.
mmpur_message_forced 'E' 'ME' '083' text-004 '' '' ''.
invalidate the object*
CALL METHOD im_item->invalidate( ).
ENDIF.
ENDIF.
ENDIF.
check field badi_afnam*
IF ls_customer-badi_afnam IS INITIAL.
mmpur_metafield mmmfd_cust_02.
mmpur_message_forced 'W' 'ME' '083' text-003 '' '' ''.
ENDIF.
ENDIF.
regards
Prabhu -
Hi Experts,
I am looking out for a BADI to update the BP through transaction BP before saving it.
I found couple of them which get triggered but any changes made in these BADIs are not to be seen in the transaction after saving.
1. ADDRESS_UPDATE and
2. BUPA_ADDR_UPDATE.
Please suggest me how to proceed as I am blank at the moment. Please answer me as soon as possible as it is an urgent issue.
Maximum Points will be rewarded.
Thanks in advance.Hi Gautham,
No good, It did not help me Gautham.
Can you please suggest me some other way of dong it.
I have 2 badis to use one is address_update and the other is addres_check.
I implemented address_check which had a address structure as a changing parameter and I update it there, it works absolutely fine.
But my requirement is to update the structure based on the condition of BUT000. That is the BUT000-type, which means I need to update the structure only for person and not for organization and group.
so in the badi address_check i need the BUT000 details, which I am not able to trace even from the local memory as I am getting the error saying "Memory is not yet instantiated"
and If i use the other badi address_update.
I have the problem the other way round here. I have all the BUT000 details here I can put the condition to update only for person, but I am not able to update the address structure.
Please help me. This is required very urgent.
Maximum points will be rewarded.
Thanks in advance.
Arul. -
User exit/BADI for updating custom table in MB1B transaction-
Dear All,
When performing a material to material conversion in MB1B transaction for batch managed materials,system is creating a new batch by copying the characteristics of issuing material/batch.The details of the new batch created are updated in standard batch tables(MCH1,MCHA,MCHA).
The requirement is when the new batch is created,the batch details and characteristics has to be stamped in a custom table.
Kindly suggest a user exit/BAIi available for updating the same in the custom table.
Regards,
DeepakDeepak, Exits for MB1B are
MBCF0002 Customer function exit: Segment text in material doc. item
MBCF0005 Material document item for goods receipt/issue slip
MBCF0006 Customer function for WBS element
MBCF0007 Customer function exit: Updating a reservation
MBCF0009 Filling the storage location field
MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1
MBCF0011 Read from RESB and RKPF for print list in MB26
MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc. -
BADI for updating changing output medium in PO
Hi,
Is there any BADI or exit present for updating the output medium in PO , based upon some criteria ?
In my requirement I want to make output medium as <b><b>'email'</b></b> and set email address to email ID of one of the partner function maintained in PO.
Thanks and Regards,
Amit RHi
<b>At runtime, you will get the GUID in the BADI Interface.</b>
Incase this BADI does not help, go for another BADI
1) <u>BBP_SEND_MEDIUM_MODE</u>
(Determines the Default Settings for the Send Medium)
2) '<u>BBP_OUTPUT_CHANGE_SF'</u>.
<u>Here are some related links -></u>
Re: PO output medium issue
Re: SRM PO SMARTFORM
Re: Control PO output to vendor
Re: Add a Printer ? -> LP01
Hope this will help.
Regards
- Atul -
Hi ,
Is there any Badi or user exit to make changes to the line item data in the purchase requisition create/change ME51N or ME52N transactions. We would want to populate few fields automatically on the item data, so would request if any of you have worked on any Badi for this transaction, please do post in immediately.
Thanks,
SowmyaHi,
1)BADI to be implemented: ME_PROCESS_REQ_CUST.
Method to be used: PROCESS_ITEM.
Place the below code in your implementation.
data : l_item type MEREQ_ITEM.
CALL METHOD im_item->get_data
receiving
re_data = l_item.
*C-- L_ITEM-BEDNR is requirement tracking number
2)Exit in ME51N
MEREQ001 Customers' Own Data in Purchase Requisition
You can implemet by this way
You add your customer fields, which should be saved in the database, to
the include CI_EBANDB (in table EBAN). You can also add customer fields
that you want to use during the program run to the include CI_EBANMEM
(in structure MEREQ_ITEM) These fields are not stored in database table
EBAN.
<b>Reward points</b>
Regards -
BADI For Commitment Item Change for Service PO
Hi All,
I want to change the commitment item in the PR on change of Material Group . I used the BADI ME_PROCESS_REQ_CUST for changing the commitment item and its working fine for all types of PR except Service PR .
In service PR , its changing the commitment item only on clicking the Account Assigment button because at this instant only the BADI is getting trigger .
I want to change the commitment item without clicking the Account Assigment button (on pressing enter or at saving time ) .
Is there any way ?
Thanks
Manik L DhakateWe are using User Exit MEREQ EXIT_SAPLMEREQ_010
In our PR creation for ME51n, we are validating the Person through HR Org structure at the Point of Key in his Cost Center, whether he belong to his Department cost center, we use this User Exit MEREQ EXIT_SAPLMEREQ_010. If he doesnu2019t not belong, the message pop up as u201C Please use your department cost centeru201D. This works very good in case of NB Document Type (Non stock & Materials).
We have customized ZCPR (Service PRs), but for service PRs, the place where we enter Account Assignment is Different screen, either it is planned or unplanned service, the system take you to another separate screen to key in Cost Center & GL, here the validation is not happening,
Please suggest & advice us, we tried in this BADI : ME_PROCESS_REQ_CUST, we can fix it. Any User Exit or BADI for Service PRu2019 -
BADI for inserting items in ME51N
Hi
Which BADI do I use to insert items creating a purchase requisition (ME51N)?
Thanks in advance.Check this badi..
ME_BAPI_PO_CUST Customer BAdI for BAPI_PO_CREATE1 and BAPI_PO_CHANG
ME_BAPI_PR_CUST Customer BAdI for Enjoy Purchase Requisition BAPIs
next go to t-code Se15>expand the enhacement tab>enter package(ME) under Badi's tab and
execute you will get the list of Badi's
available...
Prabhu
Edited by: Prabhu Das on Jun 1, 2009 7:17 PM -
User exit/BADI for updating Purchase Order Item
I am would like to update the purchase order item - specifically field EKPO-REPOS in a user exit or BADI. I haven't been able to find one that allows you to update the purchase order item.
Any input would be appreciated.
DerickYou can use BADI ME_PROCESS_PO_CUST for you requirement
Method PROCESS_ITEM
* Retrieve item data.
CALL METHOD im_item->get_data
RECEIVING
re_data = v_data_item.
Do you validations and changes here
*update changes
CALL METHOD im_item->set_data( v_data_item ). -
User exit / BADI for updating STO when change in subcontracting PO
Hi
The requirement is to update the STO (stock transfer order ) when their any change in subcontracting PO at item level. Is there any exit or BADI available where STO quantity and delivery date will be updated after any change in PO at item level ?
Thanks
ManasDeepak, Exits for MB1B are
MBCF0002 Customer function exit: Segment text in material doc. item
MBCF0005 Material document item for goods receipt/issue slip
MBCF0006 Customer function for WBS element
MBCF0007 Customer function exit: Updating a reservation
MBCF0009 Filling the storage location field
MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1
MBCF0011 Read from RESB and RKPF for print list in MB26
MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc. -
Exit/Badi for Updating Actual Start Date in CJ20N
Dear Experts,
In transaction CJ20N, under Dates Tab for a particular Activity, there is one field viz. Act i.e. Actual start: Execution (date). My requirement is to display PR date in this field. Besides this, Actual finish: Execution (date) should also get updated depending on the Duration field.
I searched all the exits in the package 'CN' and 'CORU', but none of them seems to be useful
Please suggest a user exit/BAdI which could help resolve this.
Thanks in advanceHi,
That BADI would trigger when you change any thing on the WBS and hit save.
WORKORDER_UPDATE-for network
Regards,
Himanshu
Maybe you are looking for
-
Encoding in Receiver side file adapter
Hi All, I have special characters in message structure. While writing the message to output file the special characters are not getting printed(getting replaced by '?'); I have tried using UTF8, ISO-8859-1 and other code pages related to latin charac
-
Hello, i have an iphone 5 and it turns off itself. happened many times since i got it replaced from apple bar. i tried to re install the software but still no solution. any idea what can be wrong?
-
Hi, I am getting the following error com.jspsmart.upload.SmartUploadException: File can't be saved (1120), pls help. Thank You.
-
Question re optimize/cleanup/compress in Standard
Hello, I have Acrobat 9 pro on one computer, and Acrobat 9 standard on another. When scanning, some combination of settings (I can't figure out why) is causing automatic compression. In pro, I just go into cleanup and make sure the entire document
-
Cannot create a database connection
Hi, I am installing WebCenter Suite 11g. In the first time I install oracle 11g in a VM since the oracle 10.2.0.2 is running in my machine and it cannot be stopped. The VM is in my machine. In the DB of VM, I create a user named user2 for testing and