FM/BADI for update of VBRK. Invoice
Hi,
Myscenarie: Get a file from external partner and update SAP table: VBRK with referense nr.
What is done: I have made a custom idoc with a custom FM that grabs this referense and update a Z field in VBRK.
Code:
update vbrk set zzklarna_inv_nr = p_ls_z1klainv-zklarna_invnr
where vbeln = p_ls_z1klainv-belnr.
1. This code works just fine but I really want something more SAP Standard FM or BADI that make the same operation.
Any pointers ?
2. When this Z fiield is updated I need to trigger a output as well (setup under invoice today).
Any pointers how this can be done ? (a dummy change on invoice (VF02) will trigger required output.)
Br, Martin
Try this code:
LW_PRICINGC-REF_HANDLE = 1
LW_PRICINGC-REF_KIND = 'A'.
Pass other field values which are required.
INSERT LW_PRICINGC INTO TABLE IT_PRICINGC.
LW_INPUT_FIELDSC-REF_HANDLE = '1'
LW_INPUT_FIELDSC-REF_KIND = 'A'.
LW_INPUT_FIELDSC-OBJECTNAME = 'PRICING'.
LW_FIELD_NAMES-FIELDNAME = <fieldname>.
INSERT LW_FIELD_NAMES INTO TABLE LW_INPUT_FIELDSC-FIELD_NAMES.
INSERT LW_INPUT_FIELDSC INTO TABLE LIT_INPUT_FIELDSC.
Then call CRM_ORDER_MAINTAIN and then call CRM_ORDER_SAVE,COMMIT WORK.
Similar Messages
-
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. -
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 -
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. -
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 -
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. -
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 -
BADI for Updating work order component data
Hi,
I need to update the field special stock indicator for the work order component data when it is saved. I am using the BADI WORKORDER_UPDATE for the same, but when I implemented the ZWORKORDER_UPDATE_IM using the standard defenition WORKORDER_UPDATE , the code does not allow me to change the it_component internal table belonging to the BEFORE_UPDATE method. Could you please help me in this.
Basically if we are implementing a standard defenition how to change the parameters of the methods in it.
Regards,
Prabaharan.GHi ,
It is giving the below dump. The parameter is importing parameter and it does not allow to change even using field symbol. Is there any other way. Is there an user exit which will be called when pressing enter button in component screen. The exit EXIT_SAPLCOBT_001 did not work for this.
Error analysis
The program tried to assign a new value to the field "<F_FS1>" even though
it is protected against changes.
The following objects are protected:
- Character or numeric literals
- Constants (CONSTANTS)
- Parameters of the category IMPORTING REFERENCE for functions
and methods
- Untyped field symbols to which a field has not yet been assigned
using ASSIGN
- TABLES parameters if the corresponding actual parameter is protected
against changes
- USING reference parameters and CHANGING parameters for FORMs if
the actual parameter for this is protected against changes
Regards,
Prabaharan.G -
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 ). -
Am I correct to say there's no BAPI/BAdI for updating an MSEG extension ?
SAP allows you to append to MSEG in dictionary, although many customers agree this is not a good thing to do.
But suppose your customer has decided to extend MSEG.
As far as I can tell, SAP does not allow update of this extension via any of its BAPIs or BAdIs.
My reason for claiming this is that:
1) MSEG is received "importing", not changing, by the screen-handling interface IF_EX_MB_MIGO_BADI that allows you to put a custom tab on MIGO
2) MSEG is received "importing", not changing, by the standard MIGO update interface BAdI IF_EX_MB_DOCUMENT_BADI.
3) There are 79 flavors of Goods Movement BAPI, and so far as I can tell, none of them have "extension" capability (like the PR or PO BAPIs.)
Do you all agree that:
there is no way to update the custom portion of an MSEG record using an SAP provided BAPI or BAdI.
If you disagree, please point me to the BAdI or BAPI that does this.Also, please note that extension capability, even in CREATE mode, is only available in a "new-style" BAdI, and therefore only at level ECC6 or above - this is spelled out specifically in Note 906314 - where it indicates that the BAdI is a "new-style" BAdI.
So at ECC5, there is no extension capability for MSEG in any BAPI or BAdI, and at ECC6, it is still an open question in my mind as to whether there is extension capability in change mode. -
User-exit / BADI for Billing Vs Excise invoice
Dear all
i am having requirement like that
i have to check ,
whenever excise invoice (j1iin) has been done for the invoice(vf03)
i have to check the billing date and the excise invoice date . with some condition
can u ppl guide me .
Thanks in AdvanceHi,
Duplicate post
Please dont post the same content in two different sections.
Regards,
Manish -
Badi for update dates values in complaints
Hi all
I need to update the date of the status of the complaint, does any body know if there are a BADI or any other way to update this value ?
I try with a DYNP_VALUES_READ function but can't found the dynpro where the vales are.
any sugestion is gratefulThe BADI name: SMOD_APOCF005 .
T.code at APO : /sapapo/mat1
Once we enter in that T.Code with some Product and Location data.
There under PP/DS tab.
Under Planning Procedure there is a field PP Plng Procedure which I want to set as 4
And under Order Creation there is Plan Explosion which needs to be set as 5
And Under Horizons there is PP/DS Horizon which needs to be set as 999.
BADi is implemented and active.
And once the data is CIF from ECC to APO
These default values are not set in the T code in APO and the BADi is not triggering. -
BADI for updating condition rate in CRMD_ORDER
Hi Gurus,
I am creating a sales order using CRMD_ORDER and trying to update the condition rate in ABAP. I need to know how exactly i can do the same.
I have identified CRM_COND_COM_BADI and CRM_PRICING_I_BADI but I don't know which parameters to alter in order to update the condition rate.
Regards.Hi Charles,
Here is a piece of code which i used to update pricing conditions.
From here you can see what all fields are to be passed to maintain price conditions.
y_lwa_pric_cond_change-stunr = y_lwa_pric_cond-stunr.
y_lwa_pric_cond_change-zaehk = y_lwa_pric_cond-zaehk.
y_lwa_pric_cond_change-waers = y_lwa_pric_cond-waers.
y_lwa_pric_cond_change-kbetr = y_lwa_pridoc-ypriccndp.
INSERT y_lwa_pric_cond_change INTO TABLE y_li_pric_cond_change.
y_lwa_pridoc-cond_change = y_li_pric_cond_change.
INSERT y_lwa_pridoc INTO TABLE p_it_pridoc.
y_lwa_input_fields-ref_guid = y_lwa_pridoc-ref_guid.
y_lwa_input_fields-ref_kind = 'B'.
y_lwa_input_fields-objectname = 'PRIDOC_COM'.
y_lwa_field_names-fieldname = 'LIST_PRICE'.
INSERT y_lwa_field_names INTO TABLE y_li_field_names.
y_lwa_field_names-fieldname = 'DISCOUNT'.
INSERT y_lwa_field_names INTO TABLE y_li_field_names.
y_lwa_field_names-fieldname = 'NET_PRICE'.
INSERT y_lwa_field_names INTO TABLE y_li_field_names.
y_lwa_input_fields-field_names = y_li_field_names.
INSERT y_lwa_input_fields INTO TABLE y_ct_input_fields.
REFRESH y_li_field_names.
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
it_pridoc = p_it_pridoc
CHANGING
ct_orderadm_i = p_it_orderadm_i
ct_input_fields = y_ct_input_fields.
Let me know if you need any clarrification.
Regards,
Vinay Sah
Edited by: Vinay Sah on May 26, 2009 11:17 AM -
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 SuvarnaHi!
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
Maybe you are looking for
-
Installation hangs with Third Party Source component
Hi, The installation hangs when it is installing Third Party Source (57%) in my environment. This is my environment: 1. Solaris 10 x86 5/08 2. SunStudio12ml-solaris-x86-200709-pkg.tar 3. Installation method: single user, graphical user interface 4. H
-
How do you get a button to open a PDF?
HTML DB 2.0 Ok I can get a list to open a pdf (make target a a url then(\\server.domain.gov.uk\DATA\info\file.pdf "target=_blank") I can get a page item to open a odf (in the sourse use (href=\\server.domain.gov.uk\DATA\info\file.PDF target="_blank">
-
How to update license for SUP 2.0?
Hi, We had previously installed a trial version of SUP 2.0 on a windows server 2003 version 64 bit system. Since it was only a trial version, it expired and now we have obtained a license for the same. How do I use the same installation by updating t
-
User profiles deleted with migration assistant
I just bought my daughter a new MacBook Air to replace her 3 year old MacBook Pro. When she tried using Migration Assistant to transfer her files, it totally wiped out her user profiles so she couldn't log into the MacBoook Air any longer and she ha
-
I deleted photos accidentally from ipad2 and SD card
I deleted photos from ipad2 and sdcard accidentally