AIST0002-User Exit - Validation of user defined field
I have implemented the enhancement aist0002. I added a user defined field in a user defined subcreen and added it to the leasing tabstrip. I would like to validate this field against a another field in sap's leasing subscreen. In the pai of the user defined subsrceen the field of the other subscreen does not get filled. Is there a way to access the field of the other subscreen on the leasing tabstrip from the pai module of the user defined subscreen?
Thank you
Tom
Thank you for your response but I am not sure where the import occurs?
This is the pai of the user subscreen 9000 for AS01.
form edit_input .
data: itab type lfza.
if anlu-zzempfk is not initial.
select * from lfza into itab
where empfk = anlu-zzempfk and
lifnr = anla-leafi.
endselect.
if sy-subrc <> 0.
set cursor field 'ANLU-ZZEMPFK'.
message e007(zvalid).
endif.
endif.
endform.
Function exit EXIT_SAPLAIST_002 include zxaisu03
looks like this:
anlu = i_anlu.
anla = i_anla.
Data gets moved to anlu or anla if it was already built. They are empty when it is a create transaction(as01).
Function exit exit_saplaist_003. include zxaisu04
looks like this:
e_anlu = anlu.
After the subscreen is processed it exports the data to global variable.
The problem is the pai module for the user subscreen 9000, the field anla-leafi is not filled. This field is located in sap's subsceen 1403. It has data in the screen field. My assumption is that it would be accessible as global data that could be used by my user defined subscreen once I began the validation in the pai of subscreen 9000.
Could you provide more insight on how I would access the field from the other subscreen?
Similar Messages
-
BADI or User Exit validation of operations tab and displaying an error mess
Hello,
Could you please let me know the BADI or User Exit validation of operations tab and displaying an error message in iw32
Thanks,
Suresh MglHi ..
I tried that user-exit...but i need to block the changes for purchase requisition which is in released stutus..
.i hope i need to do implicite enchancement spot.....could you please help me to do that..
Thanks,
Suresh Mgl -
Dear Experts,
I am pretty new in BAPI,BADI ,BDC,ALE ,IDOC,USER EXIT,VALIDATION AND SMART FORMS.
Pls let me know for these topics shall i put the question in this community or should i put in any other form. Pl suggest me .
Regards
ShivasPlz SEARCH in SCN before posting ,you will get lot of posts .
Don't use all caps in the subject line -
User Exit to Override ASN IDOC field
Hello Experts,
I am looking for an user exit to override ASN IDOC field while sending IDOC to third party tool. Below is the scenario
Once we do the PGI on outbound delivery SPED output creates ASN and it triggers ZASN output. We use basic type DELVRY03 to send IDOC to third party tool. Now before sending ASN to third party tool we would want to send them a flag so based on that they perform auto receipt process in their system.
I have selected Export Indicator (EXPKZ) field from IDOC since this hasn't been mapped with third party tool. Once we get an user exit to update the Auto Receipt flag in the Export Indicator field in IDOC we will map it in XI/PI so that it will go to third party tool for further processing.
I have a logic to identify the ASN which needs to set auto flag but I am struggling where and how to put that logic, what user exit suffice the requirement?
Thanks in Advance
JayIf my understanding correct Before you send inbound delivery information to third party system you will send one Flag to Third party system to do goods receipt.I have one question if system failed to create /user cancelled Outbound delivery then how will you stop auto goods receipt in Third party system ?.Also After goods receipt GR messages failed in sap as there is no ASN created in system.
If you want to send the flag before ASN creation then at Speed message level you split the Idoc message into two parts one for flag the message two third party system and another one to create Inbound delivery. -
User Exit for checking Purchase Requisitioner Field in CJ20N Transaction
Hi,
I want user Exit for checking Purchase Requisitioner field while making PR through CJ20N transaction. I have trie EXIT_SAPLEBND_001 user exit. Problem in this user exit is I am not getting Purchase Requisitioner No & Item No in I_CEBAN
structure.
Please suggest what to do ?
Regard's
ShabbirHi,
You can check with this BADI ME_PROCESS_REQ_CUST.
Kindly refer below mentioned link for further details:
Badi ME_REQ_POSTED For CJ20N Transaction
Hope this will help you.
Regards,
Mudita -
User Exit to update user status at VA01/VA02
Hi Expert
Please help identify any User Exit to update User Status stored in tables (JSTO/JEST), at time of sales order (Business Object 2032) creation / change.
Requirement is to set check mark on a specific user status in case of a material master is missing HTS code.
Regards-AamirHi,
If your requirement is to set the check the HTS field in the material master, you can make the field as Mandatory without which the Material cant be saved
You can make this field mandatory in OMS9 transaction code with field status as 89 and the field is MARC-STAWN
Please revert if you need more details
regards,
santosh -
User Exit to add user-defined selection critieria onto VL10G
Does anyone know how to add user-defined selection criteria onto <b>VL10G</b> - Sales and purchase order display screen? OSS note <b>524424</b> states the userexit to transfer user-defined selection criteria from the selection screen to the report but no information on how to add the selection criteria on the screen. Is that something can be done through configuration or user-exit?
Any advice or sample is greatly appreciated.I was in a hurry, I forgot to add, the user role specific selection screen assignment to VL10G is done at "delivery scenario" level
The delivery scenarios that are predefined in the system can be found under Logistics Execution -> Outbound Process -> Goods Issue for Outbound Delivery -> Outbound Delivery -> Create -> Collective Processing of Documents for Shipment.
You can make the following settings in a delivery scenario:
<b>Selection screen</b>
You can use the selection screen parameters to define the appearance of the selection screen used to select the delivery list.
There are three combinations of selection parameters available that each include a different number of tabs.
A long selection screen with no tabs
A selection screen with three tabs
A selection screen with six tabs
The selection criteria is the same on all three screens in the standard system, it is simply arranged differently.
This parameter also triggers scheduling of the report for processing the delivery list, with the same three available tab options.
Customer enhancements are also possible in the LV50R_PREFZ1 program, which should be triggered from a delivery scenario.
<b>User role</b>
In the standard system, a predefined user role is assigned to each delivery scenario. If necessary, you can copy these user roles into your own user roles, make changes as required, and then assign them to a delivery scenario of your choice.
If the user role assignment for a delivery scenario is changed in Customizing, the new settings are valid for all users that carry out this delivery scenario. -
User Exit Validation for CAT2 using CATS0003
Hi all,
I am using the user exit CATS0003 to validate the receiver cost center, receiver fund, receiver order and the receiver functional area.That is if any one of this fields are initial it will give an error message.
But when I try to change an existing record and try to change the order number (say if its blank - some records are with with blank internal order nos since we just implemented this validation , and I try to input a value in the time sheet ) and when I do check for errors it is still giving out the error message which it is supposed to give when all the fields are initial.When I debug I dont see my order number value which I gave on the time sheet
entry.the filed is just blank/initial so its giving my error message.
I am wondering is there any other user exit should we use to get the changed value to the user exit? If so please let me know.
Please help and thanks in advance.Following is my code
CHECK fields-workdate >= '20060701'.
Regular time
IF ( fields-awart = '1000' OR
fields-awart = '1030' OR
fields-awart = '1035' OR
fields-awart = '1180' OR
fields-awart = '1250' OR
fields-awart = '2000' OR
fields-awart = '2005' OR
fields-awart = '2010' OR
fields-awart = '2015' OR
fields-awart = '2020' OR
fields-awart = '2025' OR
fields-awart = '2030' OR
fields-awart = '2035' OR
fields-awart = '2045' OR
fields-awart = '2055' OR
fields-awart = '2060' OR
fields-awart = '2065' OR
fields-awart = '2070' OR
fields-awart = '2080' OR
fields-awart = '2085' OR
fields-awart = '3000' OR
fields-awart = '3005' OR
fields-awart = '3010' OR
fields-awart = '3015' OR
fields-awart = '3020' ).
no additional account assignments are allowed.
IF ( fields-rkostl <> 0 OR
fields-raufnr <> 0 OR
fields-fund <> 0 OR
fields-func_area <> 0 ).
MESSAGE e027(zmps).
ENDIF.
Extended hours
ELSEIF ( fields-awart = '1020' OR
fields-awart = '1040' OR
fields-awart = '1050' OR
fields-awart = '1060' OR
fields-awart = '1070' OR
fields-awart = '1080' OR
fields-awart = '1090' OR
fields-awart = '1100' OR
fields-awart = '1110' OR
fields-awart = '1120' OR
fields-awart = '1130' OR
fields-awart = '1140' OR
fields-awart = '1150' OR
fields-awart = '1170' OR
fields-awart = '1190' OR
fields-awart = '1200' OR
fields-awart = '1210' OR
fields-awart = '1220' OR
fields-awart = '1230' OR
fields-awart = '1240'). " OR
Give error message when ( Cost center or Fund or Function area ) or
( Cost center or Fund or Function area or Internal order ) is initial.
IF fields-workdate >= '20080705'.
IF ( fields-rkostl IS INITIAL OR fields-fund IS INITIAL OR
fields-func_area IS INITIAL OR fields-raufnr IS INITIAL ).
MESSAGE e030(zmps).
ENDIF.
ELSE.
IF ( fields-rkostl IS INITIAL OR fields-fund IS INITIAL OR
fields-func_area IS INITIAL )." OR fields-raufnr IS INITIAL ).
MESSAGE e028(zmps).
ENDIF.
ENDIF.
ENDIF.Looks like the error checks are being made before the values are transferred from screen to internal table and work area.
If you get the blank value for the field, also try to use function module DYNP_VALUES_READ to read values from screen field inside the user exit. If it comes back with value, validate against that value.
Edited by: Sharad Agrawal on Aug 7, 2008 2:41 PM -
USER EXIT or BADI for Vendor field in MIRO
Hi Experts,
In MIRO transaction vendor field gets defaulted from Purchase Order. So my requirement is to changes that vendor with alternate payee.
To <u>replace the vendor with alternate payee</u> I need the <b>USER EXIT or BADI</b>, kindly help me on this will be useful for us.
Thanks in Advance.
SAP ConsultantTransaction Code - MIGO Goods Movement
Exit Name Description
MBCF0002 Customer function exit: Segment text in material do
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_
MBCF0011 Read from RESB and RKPF for print list in MB26
MB_CF001 Customer Function Exit in the Case of Updating a Ma
No of Exits: 8
BAPI-step by step procedure
http://www.sapgenie.com/abap/bapi/example.htm
list of all BAPI's
http://www.planetsap.com/LIST_ALL_BAPIs.htm
Rewards if useful.................
Minal -
User Exit to make Payment Term field non editable in item level .
Hi all,
User wants to make the Payment Term field in sales order as non editable and Payment terms is copied from Customer Master to Sales order.
I use user exit MV45AFZZ (USEREXIT_FIELD_MODIFICATION) to make Payment Term field non editable in header level.
I am not able to do it in item level. Pl help to to make Payment Term field non editable in item level.
Thanks,
sunilHi,
You can try implicit enhancement in the include MV45AF0T_TCTRL_U_ERF_AUFTRAG_I
use below code.
DATA: WA_COLS LIKE LINE OF TCTRL_U_ERF_AUFTRAG-COLS.
LOOP AT TCTRL_U_ERF_AUFTRAG-COLS INTO WA_COLS.
IF WA_COLS-SCREEN-NAME = 'VBAP-ZTERM'. " Check the field name
WA_COLS-SCREEN-INPUT = 0.
WA_COLS-SCREEN-OUTPUT = 1.
MODIFY TCTRL_U_ERF_AUFTRAG-COLS FROM WA_COLS.
ENDIF.
ENDLOOP.
It better to control it via a custom authorization object.
put a authorization create a custom authorization object so that you can restrict it for a certain users.
AUTHORITY-CHECK OBJECT 'ZTERM'
ID 'ACTVT' FIELD '02'.
IF SY-SUBRC NE 0.
LOOP AT TCTRL_U_ERF_AUFTRAG-COLS INTO WA_COLS.
ENDLOOP.
ENDIF.
Regards
Aromal -
User Exit /Badi to display Plant field in Accounting Doc Generated in MIGO
Hi All,
when we do GR in MIGO FOR Movement type '101' , it creates a material document and accountign document. In the Accounting Document , we need the plant field to be displayed with the plant from the Purcahse order in the Addtional Account assingments subscreen. ( the same document can be seen in FB03).
Is there any user exits or Badi available for this particular scenario. R we missing anything in the functional configuration.
Kindly let us know. Thanks in advance,.
Regards,
Leo.Hi,
You can use the badi MB_DOCUMENT_UPDATE method MB_DOCUMENT_BEFORE_UPDATE
or badi MB_MIGO_BADI method POST_DOCUMENT.
You need to call a function module IN UPDATE TASK in order to save the data in DB, you can use an update statement within this FM...
Create the FM with processing type: Update Module and Start Delayed.
Regards. -
Table I_KOMP in PO Pricning Item User Exit is not populating CHARG field
Hi,
I have activated the user exit EXIT_SAPLMEKO_002 which is used for pricing.
But the while creating PO the structure I_KOMP is not getting populated with CHARG i.e BATCH field which I want to use for pricing calculations.
Is there any thing to do so that the CHARG field in I_KOMP strucure is populated
Please help me for the same
Regards
Sujit SawantHi,
I have activated the user exit EXIT_SAPLMEKO_002 which is used for pricing.
But the while creating PO the structure I_KOMP is not getting populated with CHARG i.e BATCH field which I want to use for pricing calculations.
Is there any thing to do so that the CHARG field in I_KOMP strucure is populated
Please help me for the same
Regards
Sujit Sawant -
Infotype 0008 - User Exit Validation
Hi Gurus,
I have to validate infotype 0008 amount fields in PAI user exit ZXPADU02 .
For a scenario, if the amounts are not equal ( BET01 <> BET02) then I have to geneate error message.
Then the user is supposed to correct / re-enter the amounts .
The problem is , when I generate error message , the amount fields are grayed out.
I think this is happeneing cause of standard SAP code ( in flow logic for program MP000800 ) .
Is there any way to generate error message in the user exit and
Give the users an option to update the amount correctly ??
Core mod is the last option.
Appreciate your inputs .
ThanksI solved this problem with:
if BET01 <> BET02.
message 'tekst' type 'S'.
LEAVE SCREEN.
endif. -
QM01 USer Exit to fill Coordinator Partner field for notification type Q3
am working on Notification creation Transaction QM01. The requirement is,
The user selects Notification type "Customer Complaint" & Provides Sales Order Number & Item number.
In the Reference Objects Tab, User fills Coding , Description , Subject fields.
Now when the user clicks on Save, I should fill the Coordinator field(To see this field the navigation is, in the menu Goto-> partners ) automatically based on some input criteria.
So when I Click on Save button before any user exit/BAdi gets called, I am getting the erorr message "Enter the mandatory partner".
I have cheked a few user exits & none of them gets called after save & before the error popup.
please give idea about implicit enhacnement ?
Could you please let me know how to fill Coordinator field automatically?Hi ,
You can check following user exit.
QQMA0029
QQMA0019
QQMA0025
Thanks
Shambhu -
QM01 USer Exit to fill Coordinator Partner field
Hi Experts,
I am working on Notification creation Transaction QM01. The requirement is,
The user selects Notification type "Customer Complaint" & Provides Sales Order Number & Item number.
In the Reference Objects Tab, User fills Coding , Description , Subject fields.
Now when the user clicks on Save, I should fill the Coordinator field(To see this field the navigation is, in the menu Goto-> partners ) automatically based on some input criteria.
The Coordinator field is set as mandatory in VOP2 Transaction. So when I Click on Save button before any user exit/BAdi gets called, I am getting the erorr message "Enter the mandatory partner".
I have cheked a few user exits & none of them gets called after save & before the error popup.
Could you please let me know how to fill Coordinator field automatically?
Regards,
Sudhakar RayalaFoundout a work around for it....Solved myself using implicit enhacnement
Maybe you are looking for
-
HP Envy 17t-j100 Distance between USB Slots suggestion
I intended this post as a recommandation for HP. I have an HP Envy Touchsmart 17t-j100 and everything is excelent up until now. The only thing that is very annoying is the distance between USB ports. PLEASE increase the distance between USB ports fo
-
Re-run Free goods Determination procedure in sales order
Hi frnds, Free Goods determination procedure will run when I am entering material in the sales order. Like pricing (caarry out new pricing option)can we re-run the free goods determination procedure in sales order after entering the material. Please
-
Sync iCal across two Macs w/o .Mac
How do I sync the iCal calendar across two Macs without using .Mac? I have heard of iSyncCal but right now their website is offline and I can't get to it. Other solutions?
-
When trying to launch iTunes, I am getting the message "You cant open application iTunes because it may be damaged or incomplete". Has anyone experienced this before and how did you fix it? I have been using Time Machine, and tried to restore my iTun
-
Cannot Edit Group Policies - Windows Server 2003 R2
Hello, everyone. I have a server running Windows Server 2003 R2 Standard Edition Service Pack 2 32-bit. Group policies were working fine until sometime last week. Now, whenever I would launch GPMC, I would get an error message that said "Windows can