Substitution exit. in TC MIRO
I am trying to populate the Purchase order number in the assignment field in CenvatThis gets populated correctly in the
transaction J1IEX but not so in MIRO.
it can be solved through substitution exit, if any body having material pertaining to substitution exit plz mail me to my id [email protected]
Thanks & Advance
Laxmi Narayan
There is no need for substitution for bringing purchase order number in cenvat through MIRO, instead you can give the sort key No.010, in GL master of cenvat under tab control data.
The purchase order number will be automatically displayed in assignment field of cenvat items.
Hope this will resolve your query.
Best Regards
Mukesh Mokashi
If useful kindly assign points
Similar Messages
-
Hi,
I have written code for substitution exit by using enhancement spot in RGGBS000 i need to update BKPF-BKTXT and BSEG-SGTXT.it is updating also but as i debug further it resets to old values please guide further...You didn't undertsand the post.
Agreed that BKPF-KUTY2 is not an put parameter.
How ever what I am suggesting is that,
1) Create a document type ZZ with Default exchngae rate as "What ever u want" and Save,
Now your problme is that the document type is at higher level than compnay code it is accessible across the company codes and also you want to restrict the currency also.
FOr this I suggested you to create a vlaidation.
Go to OB58
Create the validation at the header level and assign this to the compnay copde for which you want to trigge.
In Step
Create a pre Requiste as
BUKRS<>"XXXX" or BUKRS<>"YYYY" (Here you need to give all the compnay codes, that are in your box and also assign at the first screen)
In Chek
WARES<>"XXX"
Assign a message.
What I am trying to say is by defining a Doc type with the required Ex. Rate your primary requirement is met.
By creating a validation your secondary problem is solved (Restricting COmpnay Code and Document type)
You are indirectlky meeting the requirement of substitution.
Remember only Two true conditions make a posting.
In no way you are touching the BKPF-KUTY2.
rewrad if useful.
Sarma -
Hey All,
I have a requirement in which I want to run the AR01 report for asset balances based on customer number ( Custom Z Field saved in the ANLU table ). The current selection criteria does not have the customer number. Can this be done be not creating a custom report and by using some exits or substitution rules. Say for example Can I create a substitution exit to copy the customer field to the Asset super number field (which is currently in the selection criteria) . The substitution Field to Field doesnt help as the table ANLU is not avalaible for substitution. What options do i have in this case.
Any suggestion is highly appreciated.
Thanks,
Aparna.hi aparna,
Validation Rules and Substitution User exits
Syntax:
=Uzzzz (zzzz = up to 4 characters - this is true for Document Level validations - call point 3 - *Header Level & Line Item Level - call points 1 & 2 - allow up to 30 charaters.)
/NORFB->Bus.transactions->Base parameters->Validation
/NORFB->Bus.transactions->Base parameters->Substitution
Example
=ULTE "FI_DOCU 001 "Parked SA,FY,SI=>long text CORRESP. "
=U&VALID_WBS_IN_ZUONR "FI_ITEM 011 Spon.Res: Check WBS valid in ZUONR"
changed in 4.5B (* Form UFIA -- formerly U&VALID_WBS_IN_ZUONR)
User exits are form routines that the user programs. There are two types of user-exits:
1. Validation exits are used in the prerequisites and checks. They have either the value 'T' for true or 'F' for false. They are interpreted as a part of the logical statement, like a constant or field comparison. For this type of user exit, you must fill a parameter with the results of your check ('T' for true; 'F' for false).
Example
FORM Uzzzz USING B_RESULT. "'T' or 'F'
from program ZGGBR000 (ZGGBRI03)
2. Substitution exits are used to change one or more fields. However, you can only change those fields that are permitted in the Boolean class for the substitution. You can display these fields by selecting the following menu options in substitution maintenance: <Extras -> Fields for substitutions>
Example
FORM Uzzzz USING COST_CENTER.
from program ZGGBS000 (ZGGBSI02)
Substitution Fields can be found from this window
/NORFB->Bus.transactions->Base parameters->Substitution->Call Pnt 2->Substitution step 3->Extras->Substitution flds
The name of the form pool (e.g., ZGGBR000 & ZGGBS000) that contains your user exit must be stored in table T80D.
Note
1. Data declaration
Tables and field stings cannot be declared in form routines, so that the contents can be used along with the calling transaction.
2. Parameter definition
It is important that you make declare the code generation program for your user exit; how many and what type of parameters you are using for the user exit. You do this by entering your newly defined user exits in the form routine GET_EXIT_TITLES.
found in program ZGGBR000 (ZGGBRTIT)
found in program ZGGBS000 (ZGGBSTIT)
One exception is the parameter for the results of a validation exit. You must not declare this, it is automatically generated be the system. What types of parameters are available and how you use them is described in the online documentation. When creating your user exits, you can use the example form pools delivered by SAP (RGGBR000 for validations; RGBBS000 for substitutions) as a reference. We recommend that you copy the example form pools delivered by SAP when creating your own user exits. In these example form pools, entries already exist in the form routine GET_EXIT_TITLES for the examples delivered. The GET_EXIT_TITLES must absolutely exist in your form pool.
You can find additional information on the creation of user exits in the online documentation on validations and substitutions.
SAP exits
SAP exits are form rountines programmed by SAP. The name of the form pool is SAPFGBEB.
Syntax:
=Szzzz (zzzz = up to four characters)
FORM Szzzz using B_result. "'T' or 'F'
Example
=S01 "SAP exit S01"
Display description of T80D configuration
Return ->
Change Validation: FI_ITEM (Message view)
thanks
karthik
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 15, 2008 3:05 PM -
Substitution exit for asset master is not getting triggered.
Hi
I have created a substitution exit program ZGGBS000 having exit U215 and U216. If the Asset affirm value is initial , then WBS elemnt value will copied to asset affirm value field in the table ANLA.But it is not getting tiggered, when i am trying i save the asset in AS01 tcode. Kindly help.
Thanks
SubhaHi,
Please try thes exits:
Enhancement AIST0001 Exchange number range in master data maintenance
Here we can export both ANLA-ANLN1 ANLA-ANLN2 and Import VALUE(I_ANLA) LIKE ANLA STRUCTURE ANLA
AIST0002 Customer fields in asset master
Alternative exits:
AFAR0003 External changeover method
AINT0005 Dummy for extended syntax check. Do not use.
AISA0001 Assign Inventory Number
TRAN0001 User exit for asset transfer
AAPM0001 Integration of asset accounting and plant maintenance
AIST0002 Customer fields in asset master
AMSP0002 Determine relationship type for two company codes
AIST0001 Exchange number range in master data maintenance
AFAR0004 Determination of proportional values for retirement
AINT0004 Change amount posted for certain areas
I hope this may helpfull.
Thank you,
Thanks,
AMS -
Regarding substitution Exit in FI
How to use substitution exit in FI???
hi,
Check this link
http://help.sap.com/saphelp_45b/helpdata/en/5b/d2316743c611d182b30000e829fbfe/content.htm
sirish -
Hi Experts,
I have a requirement to substitute the profit center in a sales order and sales contract based on different criteria( information in VBAK, VBAP, VBKD and VBPA) .
To realize this, I have created a substitution rule at app area PC and call up point 1(Create sales order) and called an exit that is created in a form pool ZRGGBS000, added my exit in GET_EXIT_TITLES.
My user exit is getting called, but COBL is not filled with the data that I need to make the decision in the exit. The criteria for the substituted profit center are firlds in VBAK, VBAP, VKBD and VBPA.
Any idea on how to access these fields in the substitution exit? or any other way to acheive this substitution?
Please be assured that helpful answers will be awarded points.
Thanks in advance.
Regards,
NareshHi,
See the documents below,
1. User Exits in SAP BW (ppt)
https://websmp104.sap-ag.de/~sapidb/011000358700005475091999
2. User Exits Examples (doc)
https://websmp104.sap-ag.de/~sapidb/011000358700005475101999
in addition to answer in your other posting, take a look
Enhancement
User exit
and download pdf 'enhancements in sap bw'
here you can find the steps ...
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/59069d90-0201-0010-fd81-d5e11994d8b5
some weblog on enhancement
/people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it
http://www.ko-india.com/content/weblogs/weblog_custom_fields_1.pdf
(= /people/ajay.das/blog/2005/03/28/custom-fields-and-bw-extractors-making-a-mixed-marriage-work-part-1-1
/people/ajay.das/blog/2005/03/28/custom-fields-in-standard-extractors--making-a-mixed-marriage-work--part-12 )
<b>reward points</b>
Regards -
How to raise error message in substitution exits?
Hello Experts,
How to raise error message in substitution exits. I have tried with normal statement,
Message 'Welcome!!' type E.
But its inot stopped at that error message, Its goes next standard code and picked other messag and shown as error message.
Th exit seems U100, I that I want to stop by using error message based on some condition. Please throw the answer quicklyHI Sanjana,
In the Substitution exits you can create the message in the configuration it self.
You dont't need raise message explicitly.
Thanks, -
Create Substitution Profit Center when MIRO (invoice)
Dear all
How to create substitution profit center and this the requiredment:
When i create invoice MIRO there is tax account 11701105 and i want to substitute profit center in that account,
i have create substitution like this, in GGB1 ,>financial accounting> line item >step 1>SYST-TCODE = 'MIRO' AND BSEG-HKONT = '11701105' AND BSEG-WERKS = '1000
why this not worked, did i miss other config?
please help
Best Regards
aditHi Aditya
thats true.. MIRO line items do not always have PLANT... You can refer the following notes for this
0000032654 High level automatic account assignment
0000105024 Automatic a/c assignment (OKB9) does not work
0000409520 Goods/invoice receipt: Default account assignment ignored
If your idea is to populate a Profit center based on Plant, then you would need to use a FI Substitution with user exit RGGBS000 and write your code to fetch the WERKS from preceeding MM document and populate WERKS as well as PRCTR based on it...
But, before you do this, let me ask you a question.. Are you not using Document splitting in New GL? If you use it, PRCTR gets populated always in all the line items..
Regards
Ajay M -
BAdi / Exit to replace MIRO Invoicing Party with PO Invoicing Party
Hi,
Following is the current scenario :
PO is created on branch vendor (with a HO vendor mentioned in master). While doing MIRO, the system automatically
replaces the branch vendor with the Head office vendor (as mentioned in master). The region taken for tax purpose
is the region of the HO vendor.
Now as per our business requirement, we want to replace MIRO Inv. Party (RBKP-LIFNR) with
PO Inv. Party (EKKO-LIFRE) and want to do tax calculation based on branch Vendor.
We have already tried out all BAdis mentioned in SAP Note 1156325 - BAdIs in the Logistics Invoice Verification environment, but not able to map this replacement during t.code MIRO.
Pls suggest which User Exit / Badi need to be used?
Thanks & Regards,
Taral PatelThanks to all
-
User Exit / BADI for MIRO in order to Fill G/L Account Automatically
Hello!
Recently I've got a request asking me to fill the G/L Account table control in MIRO transaction using an User Exit or BADI. I'm able to find all the information needed to complete this task, but can't seem to find a way to insert that data in the G/L table control. They want this data uploaded as soon the user inserts the PO number and loads everything. Is this possible?
Thanks in Advance
Regards,
Moises FrancoHi.
Find appropriate place in code to realize your task
and insert GL data using corresponding BAPI. -
Hi SDN's,
I need to insert a new Z field in the Basic Data Tab of the MIRO transaction.
Can any body tell me how can i do that? Is there any exit or BADI relevant to that?
Plz its very urgent.
Regards
PratyuHi Pratya,
If u want user exit for this t.code:
LMR1M001 User exits in Logistics Invoice Verification
LMR1M002 Account grouping for GR/IR account maintenance
LMR1M003 Number assignment in Logistics Invoice Verification
LMR1M004 Logistics Invoice Verification: item text for follow-on
LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Po
LMR1M006 Logistics Invoice Verification: Process XML Invoice
MRMH0001 Logistics Invoice Verification: ERS procedure
MRMH0002 Logistics Invoice Verification: EDI inbound
MRMH0003 Logistics Invoice Verification: Revaluation/RAP
MRMN0001 Message output and creation: Logistics Invoice Verifica
These are the available.
Rewords some points.
Rgds,
P.Nag -
User exit/BADI in MIRO that would trigger invoice quantity block.
Hi,
Is there a way to enchance MIRO so that an invoice quantity block will be set automatically through user exit/BADI?
My requirement is that if an invoice is to be posted onto a PO line using an IO, the invoice needs to be processed onto the PO line up to the total of the PO line. And if the invoice goes above the PO line and there is still some budget on the IO, the invoice should get a quantity block.
Also, the quantity block should be set before posting the invoice.
Thanks.Hi,
Exit Name Description
LMR1M001 User exits in Logistics Invoice Verification
LMR1M002 Account grouping for GR/IR account maintenance
LMR1M003 Number assignment in Logistics Invoice Verification
LMR1M004 Logistics Invoice Verification: item text for follow-on docs
LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting
LMR1M006 Logistics Invoice Verification: Process XML Invoice
MRMH0001 Logistics Invoice Verification: ERS procedure
MRMH0002 Logistics Invoice Verification: EDI inbound
MRMH0003 Logistics Invoice Verification: Revaluation/RAP
MRMN0001 Message output and creation: Logistics Invoice Verification
Badi Name Description
INVOICE_UPDATE Business Add-In: Logistics Invoice Verification
INVOICE_UPDATE Transfer Invoice Receipt to Records Management
INVOICE_UPDATE Event manager communication from invoice processing
INVOICE_UPDATE Rückantwort ins CRM aus der Lieferantenrechnung
INVOICE_UPDATE Implementierung, um S1NVEXC zu übermitteln
INVOICE_UPDATE Save FI Document Type for Principle of Prudence
INVOICE_UPDATE Vendor Evaluation Based on Documents from IV
Check this badi's and user exits.
Hope this helps.
Regards,
Qamar. -
Substitution - EXITS in Fixed Assets
Hi, I need to substitute the field ANLB-AFABE, and i'am looking for an exit or substitution program.
Any ideas?
Thanks!Hi ,
look transaction oacv and oacs
and <a href="http://help.sap.com/saphelp_47x200/helpdata/en/4f/71e0b5448011d189f00000e81ddfac/frameset.htm">here</a>
Andreas -
User Exits & BAPI in MIRO transaction.
Hi all,
We have a scenario as below.
We are raising PO (Say PO No.1) with upper delivery tolerance as 10% at item level. The quantity upto 10% tolerance level is received via movement type 101.
The quantity received above 10% but upto 20% is received via separate movement type say Z01 & PO No. 2 is getting created automatically.
The quantity received above 20% is received via separate movement type say Z02 & PO No. 3 is getting created automatically.
Now consider that Rs. 500 received through 101 movement. Rs. 200 received through Z01 movement & Rs. 100 received through Z02 movement.
Now our requirement is as below.
1. At the time of MIRO, user will give PO No. 1 as input. System should through throw message to select PO No. 2 & PO No. 3 also.
2. Following entries should get passed.
101 movement : Vendor A/C Cr. 500
GR/IR A/C Dr. 500
Z01 movement Vendor A/C Cr. 200
GR/IR A/C Dr. 200
Z02 movement Provisional GL A/C Cr. 100
GR/IR A/C Dr. 100
As regards the Z02 movement, we are passing it via GL account tab in MIRO transaction.
After the above entries are passed, system should also raise a debit note for 50% amount of Z01 movement as below.
Provisional GL A/C Cr. 100
Vendor A/C Dr. 100
Can any one suggest suitable user exits/BADI/BAPI to satisfy above requirement.
ShripadHi
1. In my opinion, there is no mechanism by which you can tag PO 1/2/3... So, while entering PO1 in MIRO, I dont think there is any mechanism by which you can get a message for Po 2 and 3
You can still try your hand at BAPI_ACC_INVOICE_RECEIPT_POST.... Or go to T code BAPI and explore the right BAPI
2. Regarding other requirements of Z02 and Z01, you can create a Z t code using a BDC for F-02 or BAPI_ACC_DOCUMENT_POST
br, Ajay M -
The unplanned delivery costs can be posted with the help of the User Exit EXIT_SAPLMRMH_014 (for Transaction MR1M / MIRO). It is not possible to settle planned delivery costs. To pass Unplanned Delivery costs (freight), you have to fill also the tax jurisdiction Code for the delivery costs, because the default jurisdiction code from customizing is not relevant for EDI case. So you have to fill the
following fields:E_RBKPV-MWSKZ_BNK
E_RBKPV-TXJCD_BNK using the idoc segment E1EDK04.Please give me an idea how to code?
Title edited by: Alvaro Tejada Galindo on Jun 12, 2008 12:15 PMHi the code in the user exit is based on the idoc segment.I have to make use of segment E1EDK04.
Please help.The code is below.still they havent used the above mentioned the above segment.
*& Include ZXM08U25 *
""Lokale Schnittstelle:
*" IMPORTING
*" VALUE(I_IDOC_DATA) TYPE EDIDD
*" EXPORTING
*" VALUE(E_CHANGE) TYPE C
*" TABLES
*" T_FRSEG TYPE MMCR_TFRSEG
*" CHANGING
*" VALUE(E_RBKPV) TYPE MRM_RBKPV
*" EXCEPTIONS
*" ERROR_MESSAGE
Local Variables (Segment Definitions)
*-Unplanned delivery costs
DATA: lv_beznk TYPE beznk.
*-Segments
DATA: ls_e1edp02 LIKE e1edp02.
DATA: ls_e1edp19 LIKE e1edp19.
DATA: ls_e1edk05 LIKE e1edk05.
DATA: ls_e1edk02 LIKE e1edk02.
DATA: ls_e1edk03 LIKE e1edk03.
DATA: ls_e1edkt2 LIKE e1edkt2.
Park the Invoice Automatically (Requirement from ENH038)
**-Set the Status as Parked
e_rbkpv-rbstat = '1'. "A or 1
***rbkpv-ivtyp = '4'.
***e_rbkpv-xzuordli = 'X'.
**-Set the Change Indicator
e_change = 'X'.
This Exit is called once for every E1EDPnn segments before it calls
EXIT_SAPLMRMH_013 (which determines the PO Line Item).
Save the Material/Vendor Article/EAN-UPC to be passed to the above
User exit
*-Setup the lookup structure for PO Line items
CASE i_idoc_data-segnam.
*-IDoc: Document Item Reference Data Segment
WHEN 'E1EDP02'.
MOVE i_idoc_data-sdata TO ls_e1edp02.
*- Evaluate the Qualifier
CASE ls_e1edp02-qualf.
*- Purchase Order
WHEN '001'.
*- Save the values for PO Item Lookup
CLEAR gs_ekpo_for_lookup.
MOVE ls_e1edp02-belnr TO gs_ekpo_for_lookup-ebeln.
MOVE ls_e1edp02-zeile TO gs_ekpo_for_lookup-ebelp.
ENDCASE.
*-IDoc: Document Item Object Identification
WHEN 'E1EDP19'.
*- Setup the structure data
MOVE i_idoc_data-sdata TO ls_e1edp19.
*Article description
MOVE ls_e1edp19-KTEXT TO gs_ekpo_for_lookup-txz01.
***- Evaluate the Qualifier and save the values for PO Item Lookup
CASE ls_e1edp19-qualf.
*- Material
WHEN '001'.
MOVE ls_e1edp19-idtnr TO gs_ekpo_for_lookup-matnr.
*- Vendor Article
WHEN '002'.
MOVE ls_e1edp19-idtnr TO gs_ekpo_for_lookup-idnlf.
*- EAN/UPC
WHEN '003'.
MOVE ls_e1edp19-idtnr TO gs_ekpo_for_lookup-ean11.
ENDCASE.
**NXH999 - Use this field of the lookup as a last ditch effort to
**match invoice to PO Item
MOVE ls_e1edp19-idtnr TO gs_ekpo_for_lookup-idtnr.
*-IDoc: Document header reference data
WHEN 'E1EDK02'.
*- Setup the structure data
MOVE i_idoc_data-sdata TO ls_e1edk02.
CASE ls_e1edk02-qualf.
WHEN '010'.
WRITE ls_e1edk02-belnr TO ls_notes-scaccd.
CONCATENATE 'SCAC Code:' ls_notes-scaccd
INTO gt_notes-tdline SEPARATED BY space.
APPEND gt_notes.
WHEN '063'.
WRITE ls_e1edk02-belnr TO ls_notes-bolnbr.
CONCATENATE 'Bill of Lading:' ls_notes-bolnbr
INTO gt_notes-tdline SEPARATED BY space.
APPEND gt_notes.
ENDCASE.
*-IDoc: Document header date segment
WHEN 'E1EDK03'.
*- Setup the structure data
MOVE i_idoc_data-sdata TO ls_e1edk03.
CASE ls_e1edk03-iddat.
WHEN '010'.
WRITE ls_e1edk03-datum TO ls_notes-shdate.
CONCATENATE 'Ship Date:' ls_notes-shdate
INTO gt_notes-tdline SEPARATED BY space.
WRITE ls_e1edk03-datum TO gt_notes-tdline.
APPEND gt_notes.
ENDCASE.
*- Unplanned Delivery Costs (Requirement #5 from ENH115)
WHEN 'E1EDK05'.
*- Setup the structure data
MOVE i_idoc_data-sdata TO ls_e1edk05.
*- Look for Match Condition Record in T076I table (OBCB Transaction)
READ TABLE gt_t076i TRANSPORTING NO FIELDS
WITH KEY ewlnr = ls_e1edk05-kschl BINARY SEARCH.
IF sy-subrc EQ 0.
CALL FUNCTION 'CURRENCY_AMOUNT_IDOC_TO_SAP'
EXPORTING
currency = e_rbkpv-waers
idoc_amount = ls_e1edk05-kobtr
IMPORTING
sap_amount = lv_beznk.
IF ls_e1edk05-alckz EQ '-'.
e_rbkpv-beznk = e_rbkpv-beznk - lv_beznk.
ELSE.
e_rbkpv-beznk = e_rbkpv-beznk + lv_beznk.
ENDIF.
ENDIF.
ENDCASE.
Maybe you are looking for
-
Problems with Modbus OMNI driver
Lookout version 5.1 (build 8) I am using the Modbus OMNI driver to communicate with 6 OMNI 6000 flow computers at 56K (Hardwired) with a poll rate of every 20 seconds, receive gap 270 bytes and a failure of 1000mS. The problem I have is that when sca
-
after moving everything to an external hard drive, is there a way to restore the playlists you've already created if they're not there anymore?
-
Component Video converter?
Hi, None of my equipment (tv, a/v reciever, etc) has componenet video inputs. I have composite video and s-video on my a/v receiver. Has anyone had any luck finding converters for the component video cable so that they can hook up their AppleTV to su
-
How change country of my Apple id online
how change country of my Apple id online
-
Interaction history under Account Management not showing all quotes
We just noticed that when you look at a customer's account in the PCUI and look at the interaction history tab, not all quotes for this specific account show up. Has anyone experienced this before and if so, what is the issue?? Thanks.