Questions tagged [badi]

Tag is intended for questions related to creation and implementation of BAdI objects in SAP ABAP environments. One should not confuse BAdI (Business Add-Ins) and BAPI (Business Application Programming Interface) because those are two different SAP frameworks.

Business Add-Ins or simply BAdI is a new generation framework which replaces old user-exits and customer-exits which where used for enhancing SAP standard code for years.

Advantages over user/customer-exits:

  • class-based, supports OOP
  • support several simultaneous implementations
  • supports filters for distinguishing implementations
  • fully integrated into new Enhancement Framework
33 questions
9
votes
1 answer

Reading original (before change) DB values in the current LUW?

Is it possible to retrieve the old or original values for a table when it has been changed, but not yet committed, in the current LUW? I'm implementing a BAdI that's supposed to be used to raise messages based on changes performed to an object, but…
Lilienthal
  • 4,327
  • 13
  • 52
  • 88
6
votes
1 answer

BAPI_TRANSACTION_COMMIT with WAIT = 'X' within a BADi

What would be the effect of using the 'BAPI_TRANSACTION_COMMIT' with 'WAIT' parameter when equals to 'X' inside a BADi? Should I expect that SAP will commit the data when LUW commits? I'm aware that inside 'BAPI_TRANSACTION_COMMIT' it happens…
Nelson Miranda
  • 5,484
  • 5
  • 33
  • 54
4
votes
2 answers

What is the difference between BAPI, BAdI, enhancement and modification?

What are the differences between a BAPI (Business Application Programming Interface), BAdI (Business Add-Ins), customer enhancement and customer modification?
Eduardo Copat
  • 4,941
  • 5
  • 23
  • 40
2
votes
0 answers

Restrict withholding taxes in MIRO by current PO type?

The business is asking me that during MIRO for a vendor in the withholding taxes are coming the ones that have been setup in the Vendors. What they want is from all these Withholding taxes to keep only the ones that belongs to the specific Purchase…
ekekakos
  • 563
  • 3
  • 20
  • 39
2
votes
2 answers

Which BAdI/user-exit triggers for tax code MWSKZ?

​Hello, A tax code MWSKZ is being modified while generation of the accounting document, it is displayed fine in FB01, but after the generation of the accounting document, I leave to FB03 and I find that the value of tax code is modified…
2
votes
2 answers

User exit for production order confirmation in CO11N?

I've watched quite a few videos on YouTube and have a basic understanding of how to find user-exits (enhancements?) and implement them. However when I try to replicate what I've seen it doesn't appear to be working. I'm looking to create a user-exit…
DragonYen
  • 958
  • 9
  • 22
2
votes
1 answer

How to make custom field editable on item level in ME51n tcode?

My request is to add a custom field to the items in transaction ME5xN. I found the exit MEREQ001 with a few exit functions - but they don't really help me much as far as I can see. I found a few BADIs in it, but i don't know well how to use those,…
vlad-ardelean
  • 7,480
  • 15
  • 80
  • 124
2
votes
2 answers

Programmatically retrieve BAdI from BW. How?

I would like to retrieve programmatically the source code of the ABAP programs generated using BW. I would like to have an ABAP program that can retrieve BADIs source using their name as parameter and then save on local disk the source saving each…
bidi
  • 150
  • 1
  • 14
2
votes
1 answer

Programmatically retrieve SAP BPC Dynamic Script source code

I would like to know how to retrieve the source code of a SAP BPC package Dynamic Script. I'll try to explain: in SAP BPC I can write a component called Dynamic Script, I can save the source using the Excel Addin. The Dynamic Script is associated to…
bidi
  • 150
  • 1
  • 14
1
vote
1 answer

IDOC_CREATION_CHECK parameters filling?

I'm checking an implementation of the interface IF_EX_IDOC_CREATION_CHECK which has a method IDOC_DATA_CHECK with 3 parameters: IDOC_CONTROL type EDIDC IDOC_DATA type EDIDD_TT CREATE_IDOC type C And my problem is that I can't find documentation in…
Nelson Miranda
  • 5,484
  • 5
  • 33
  • 54
1
vote
1 answer

SAP cProjects replication: Set task-level WBS

When creating a project in cProjects I am using BADI BADI DPR_FIN_GECCO_ATTR to manipulate the external WBS ID that is created in SAP PS. SAP accepts the ID that I pass for the Phase level, but for the Task level SAP appends a string "/TTO" to the…
Esti
  • 3,677
  • 8
  • 35
  • 57
1
vote
1 answer

How to add "Inv. recpt date" field to Payment tab in MIRO?

Is there any chance to add field "Inv. recpt date" to Payment block in Miro tcode so that the user could select "Inv. recpt date" instead of "Baseline Date". Is there any BAdi or BAPI?
Taurine
  • 13
  • 1
  • 6
1
vote
1 answer

Declaring dynamic call of BAdi?

I want to define an object for BAdI implementation that will not initialize the BAdI by its name in declaration. Example of what I don't want: DATA l_split_badi TYPE REF TO fieb_get_bank_stmts_x. Question 1 : I want something like: DATA…
1
vote
2 answers

How to change PO delivery date via ME_PROCESS_PO_CUST?

I need to update the delivery date of the purchase order. I used the ME_PROCESS_PO_CUST BAdI in the POST method but it does not update the dates in the EKET table, only the dates on the screen are updated. Here is the code in the method POST: CALL…
stella
  • 51
  • 2
  • 5
  • 13
1
vote
1 answer

Update MKPF text during save in MB1A tcode

I am working on a requirement to update MKPF-BKTXT during save in MB1A tcode. I found MB_DOCUMENT_BADI, but the methods of the BADI only allows importing parameters and does not allow changing MKPF. Has anyone in the community worked on similar?…
gvs
  • 39
  • 1
  • 11
1
2 3