Enhancement /User Exit for logic setting call date / Horizon
Due toe planning in IP10 we have a horizon set by the system for (eks.) 80%. This is working OK for small planning intervals (i.e. up to 24 mth intervals).
However when intarval exceeds this limit we will set the call date to be maximum 30 days (for instance) ahead of the sceduled start date of the order.
Thus we need a user-defined way to manipulate / set the call date by a user exit (logic in ABAP - or by IMG settings if possible) that differs from the standard SAP setting for this date.
The question is then how we - in best practice - can do so.
Please advice if you need mor information on this issue.
Hi
Find the available exits with the following program:::
*& Report ZFINDUSEREXIT
report zfinduserexit.
tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
tables : tstct.
data : jtab like tadir occurs 0 with header line.
data : field1(30).
data : v_devclass like tadir-devclass.
parameters : p_tcode like tstc-tcode obligatory.
select single * from tstc where tcode eq p_tcode.
if sy-subrc eq 0.
select single * from tadir where pgmid = 'R3TR'
and object = 'PROG'
and obj_name = tstc-pgmna.
move : tadir-devclass to v_devclass.
if sy-subrc ne 0.
select single * from trdir where name = tstc-pgmna.
if trdir-subc eq 'F'.
select single * from tfdir where pname = tstc-pgmna.
select single * from enlfdir where funcname =
tfdir-funcname.
select single * from tadir where pgmid = 'R3TR'
and object = 'FUGR'
and obj_name eq enlfdir-area.
move : tadir-devclass to v_devclass.
endif.
endif.
select * from tadir into table jtab
where pgmid = 'R3TR'
and object = 'SMOD'
and devclass = v_devclass.
select single * from tstct where sprsl eq sy-langu and
tcode eq p_tcode.
format color col_positive intensified off.
write:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
skip.
if not jtab[] is initial.
write:/(95) sy-uline.
format color col_heading intensified on.
write:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
write:/(95) sy-uline.
loop at jtab.
select single * from modsapt
where sprsl = sy-langu and
name = jtab-obj_name.
format color col_normal intensified off.
write:/1 sy-vline,
2 jtab-obj_name hotspot on,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
endloop.
write:/(95) sy-uline.
describe table jtab.
skip.
format color col_total intensified on.
write:/ 'No of Exits:' , sy-tfill.
else.
format color col_negative intensified on.
write:/(95) 'No User Exit exists'.
endif.
else.
format color col_negative intensified on.
write:/(95) 'Transaction Code Does Not Exist'.
endif.
at line-selection.
get cursor field field1.
check field1(4) eq 'JTAB'.
set parameter id 'MON' field sy-lisel+1(10).
If there are no available user exits you could go for badi's.
To search for a badi, go to se 24 display class cl_exithandler. double click on method get_instance, get a break point on case statement. execute and start the required transaction in new session. look for variable exit_name. It would show the available badi's.
Please reward if useful....
regards
Dinesh
Similar Messages
-
Badi or User exit for CJ20N..Milestone date
HI...
I have to access the field of CJ20N fieldname (LST_ACTDT) (Milestone date).I have to send the alert mail using that value.
But i am unable to get the BADI or user exit to get that value.I am using the BADI WORKBREAKDOWN_UPDATE. But not reaching to solution.
Can anyone help me out..Hi Priyank,
Instead of that you can directly use the BAPI -BAPI_PROJECT_GETINFO
CALL FUNCTION 'BAPI_PROJECT_GETINFO'
EXPORTING
PROJECT_DEFINITION =
WITH_ACTIVITIES = 'X'
WITH_MILESTONES = 'X'
WITH_SUBTREE = 'X'
IMPORTING
E_PROJECT_DEFINITION =
RETURN =
TABLES
I_WBS_ELEMENT_TABLE = " send the pspnr value by appending in the table i.e. IT_WBS_ELEMENT-PSPNR
E_WBS_ELEMENT_TABLE =
E_WBS_MILESTONE_TABLE = "catch this in a internal table
E_WBS_HIERARCHIE_TABLE =
E_ACTIVITY_TABLE =
E_MESSAGE_TABLE =
If u wish to have details of wbs only..by entering WBS ELEMENT in I_WBS_ELEMENT_TABLE u have to give
WITH_ACTIVITIES X
WITH_MILESTONES X
WITH_SUBTREE X
then only u will get deatils of corresponding wbs via bapi BAPI_PROJECT_GETINFO.
In the milestone internal table you will have all the dates.
Please refer to the function module documentation for further details. -
User Exit for Changing Payment Due date for Invoices
HI Gurus,
Could anyone suggest a User Exit which cane be used for Due Date calculation an all Invoice Entries like MIRO, FB60 etc.
This is required for overwriting the Due Date determined via payment terms by a Particular day in a week. (Eg: Friday)Hi
User exit
Re: user exits in MM
Regards
Ram -
Screen/ User Exit for Internal Order Master Data
Hi,
I would like to one more field in Internal Order Master Data in TC KO01. I know the Table AUFK and i know there is one Include Structure (CI_AUFK). but i dont know how to add the field in that.
if you go to Screen Exit COOPA003. There is a Structure like CI_AUFK Structure there is no Calling screen in SMOD.
Can anybody please let me know how to do that?
It's really really very urgent.
your help would really appriciate.
Thanks,
Dhaval Shah.Hi Chandra,
Thanks for the reply, can you please let me know from which TC i have to do. and i will be really appreciate your help if you write down the whole process.
Because i am aFunctional Person and i am using this Screen Exit for the first time so i'll be really thank ful to you.
Thanks,
Dhaval Shah. -
User exit for copying Inbound delivery data to Batch
Hi, my client wanted copy the field 'country of origin' of Inbound delivery to batch when we create a new batch in inbound delivery.
Can anyone tell me which User Exit I can use? Thanks.Removed, for new thread
Edited by: Carol D'Sa on Dec 7, 2009 12:56 PM -
Enhancement / user exit for one time customer
Hi,
We need to upload address of one time customer when creating external billing documents.We are NOT creating billing document through sales orders . So I cannot do it manually. I have populated the Post Code and the city in the RV60AFZB but it doesnot flow to ACCFI structure, anybody has worked on this or has encountered and solved this problem before ??
Regards,
NarayaniHi,
There are user exits to pass data to FI structures as well,
EXIT_SAPLV60B_001: Change the header data in the structure acchd
EXIT_SAPLV60B_002: Change the customer line ACCIT
EXIT_SAPLV60B_006: Change the control line ACCIT
EXIT_SAPLV60B_004: Change a GL account item ACCIT
This might help you. If not please explain in detail about your requirement.
Regards,
Shashwath -
User exit for logical databse SDF
Hi,
I got 2 requirements for tcode FBL3N as below. My problem now is on 2nd requirement.
1. for the output listing - to display the vendor code and name 1 and name 2
we have afew types of vendors; alternate payee, vendor on behalf, one off vendor, cross company vendor etc.
To extract the vendor details, I did some coding in FM ZFI_INTERFACE_00001650 and attach to the BTE
for this, I have added 3 fields in structure RFPOS and RFPOSX; lifnr, name1 and name2
the result: everything is ok and the output has been accepted by user althought got incorrect data when come to multiple vendor in 1 document. the FM will only select the 1st vendor in the document
2. for the selection screen - to add vendor code
we agreed to add in the dynamic selection and for this, I have changed the SDF logical database
i have added field lifnr in structure FAGLFREESEL and has added statement -> tables: FAGLFREESEL in the FBL3N program (based on SNote). At first i plan to copy the FBL3N to Z program, but my user dont want alot of Z program and Z tcode being created
after run the FBL3N, the vendor field appear in the dynamic selection
the problem is: the output is not based on the selected vendor. seems like the program is ignoring the vendor field.
I believe I need to put some selection coding somewhere in the logical database to also check on the additional field (lifnr) but no idea on that. and of course my selection for the vendor must be same as what I did in FM ZFI_INTERFACE_00001650 (1st requirement) since we have alot of vendor types.
somebody please advice or give some idea on how do I proceed with the 2nd requirement.
thanksHi Sumaiya,
How did you resolve this, I have a similar issue. Please share.
Thanks
Shailaja -
User Exit for Variable which calls to a Function Module is NOT working ???
Hi all,
I have a created a variable 'ZNBUSDAY' with Processing Type 'Customer Exit' on 0SCL_DELDAT (Date). The query is on 0PUR_C04 and passing 0SCL_DELDAT to Function Module Z_WORKDAY to get the Next Business Day by using the company Calendar(30). The following code is NOT working and what is WRONG with it, PLEASE? The FM is working FINE.
DATA: wa_calendar(2) TYPE c value '30',
wa_znbusday like sy-datum,
0scl_deldat like sy-datum,
p_days TYPE i value 1.
case i_vnam.
when 'ZNBUSDAY'.
CLEAR wa_znbusday.
CALL FUNCTION 'Z_WORKDAY'
EXPORTING
CURR_DATE = 0scl_deldat
NUMBER_DAYS = p_days
CALENDAR = wa_calendar
IMPORTING
WORK_DAY = wa_znbusday
l_s_range-low = wa_znbusday.
l_s_range-opt = 'EQ'.
l_s_range-sign = 'I'.
append l_s_range to e_t_range.
endcase.
Thanks,
Venkat.Hi Venkat,
Looks like you're only assigning type sy-datum to 0scl_deldat but not the actual value. Try the following:
DATA: wa_calendar(2) TYPE c value '30',
wa_znbusday like sy-datum,
0scl_deldat like sy-datum,
p_days TYPE i value 1.
case i_vnam.
when 'ZNBUSDAY'.
CLEAR wa_znbusday.
0scl_deldat = sy-datum.
CALL FUNCTION 'Z_WORKDAY'
EXPORTING
CURR_DATE = 0scl_deldat
NUMBER_DAYS = p_days
CALENDAR = wa_calendar
IMPORTING
WORK_DAY = wa_znbusday
l_s_range-low = wa_znbusday.
l_s_range-opt = 'EQ'.
l_s_range-sign = 'I'.
append l_s_range to e_t_range.
endcase.
Kind regards,
Alex -
USER EXIT FOR CHANGING POSTING DATE IN THE MATERIAL DOCUMENT
Hi,
Pls advise any USER EXIT FOR CHANGING POSTING DATE IN THE MATERIAL DOCUMENT.
Regards,Hi,
There is another user exit for updating material document data Upon posting is MB_CF001
I hope this will fullfill you.
Prem -
Hi Guys,
Can anyone give me the user exit for saving / changing the data when a purchase order is being saved..
thanks in advance,
Kittu.Hi
You can use the BADI
<b>ME_PROCESS_PO_CUST</b>
There are lot of Exits for Purchasing
check the following exits if you need
MEVME001 WE default quantity calc. and over/ underdelivery tolerance
MM06E001 User exits for EDI inbound and outbound purchasing documents
MM06E003 Number range and document number
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
MM06E007 Change document for requisitions upon conversion into PO
MM06E008 Monitoring of contr. target value in case of release orders
MM06E009 Relevant texts for "Texts exist" indicator
MM06E010 Field selection for vendor address
MM06E011 Activate PReq Block
MMAL0001 ALE source list distribution: Outbound processing
MMAL0002 ALE source list distribution: Inbound processing
MMAL0003 ALE purcasing info record distribution: Outbound processing
MMAL0004 ALE purchasing info record distribution: Inbound processing
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
AMPL0001 User subscreen for additional data on AMPL
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting a GR
LMELA010 Inbound shipping notification: Transfer item data from IDOC
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
LWSUS001 Customer-Specific Source Determination in Retail
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
M06B0003 Number range and document number
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MEETA001 Define schedule line type (backlog, immed. req., preview)
ME590001 Grouping of requsitions for PO split in ME59
M06E0005 Role determination for release of purchasing documents
M06E0004 Changes to communication structure for release purch. doc.
M06B0005 Changes to comm. structure for overall release of requisn.
M06B0004 Number range and document number
Reward points if useful
Regards
Anji -
REG:USER EXIT FOR DATA SOURCE 0HR_LSO_1
Hi ,
I have to write the enhancement ABAP code for data source 0HR_LSO_1 which is related to module " training and event management "(also known as LMS or LSO) in ECC 6.0 .
So how can I find out appropriate user exit for the same .I have to concentrate on the field "kostl (cost centre)" in that data source .
Please provide some suggestions .
Thanking You ,
Tarun Brijwani .Hi Tarun...
I this might help you.
In the HR System:
1) T-CODE: CMOD
2) Choose an existing project (vg: Z12345)
3) Modify
4) Press Components button
5) Look for the enhance: RSAP0001 (the BW extracting enhancement)
6) The you have one of the following option:
a- If the Data Source is "transaction data": The exit is "EXIT_SAPLRSAP_001"
b- If the Data Source is "master data": The exit is "EXIT_SAPLRSAP_002"
7) double-click in the appropriate one
8) You'll see an INCLUDE sentence. Could be this ZXRSAU01 or this ZXRSAU02 (depending on the previous step). Double-click and you'll be redirected to the SE38
9) some code:
CASE i_datasource
WHEN '0HR_LSO_1'.
LOOP i_t_data INTO my_struct
my_struct-KOSTL "Here you'll must have your Cost Center
...etc...etc...etc
ENDLOOP.
WHEN OTHERS.
ENDCASE
Hope it helps.
gdmon -
User exit for data source 0HR_LSO_1
Hi ,
I have to write the enhancement ABAP code for data source 0HR_LSO_1 which is related to module " training and event management "(also known as LMS or LSO) in ECC 6.0 .
So how can I find out appropriate user exit for the same .I have to concentrate on the field "kostl (cost centre)" in that data source .
Please provide some suggestions .
Thanking You ,
Tarun Brijwani .Hi Tarun...
I this might help you.
In the HR System:
1) T-CODE: CMOD
2) Choose an existing project (vg: Z12345)
3) Modify
4) Press Components button
5) Look for the enhance: RSAP0001 (the BW extracting enhancement)
6) The you have one of the following option:
a- If the Data Source is "transaction data": The exit is "EXIT_SAPLRSAP_001"
b- If the Data Source is "master data": The exit is "EXIT_SAPLRSAP_002"
7) double-click in the appropriate one
8) You'll see an INCLUDE sentence. Could be this ZXRSAU01 or this ZXRSAU02 (depending on the previous step). Double-click and you'll be redirected to the SE38
9) some code:
CASE i_datasource
WHEN '0HR_LSO_1'.
LOOP i_t_data INTO my_struct
my_struct-KOSTL "Here you'll must have your Cost Center
...etc...etc...etc
ENDLOOP.
WHEN OTHERS.
ENDCASE
Hope it helps.
gdmon -
User exit for save data in T.code PA40 ABAP-HR
Hi Expart,
what is the user exit which is trigger when we save the data through pa40 transaction which check the latest update in the database.
Kindly give me exit name .Hi Vikash ,
Please refer to below Exits :
HRPBAS01 User Exit for HR Master Data
HRPC0001 HR: PC download authorization
HRRPAI01 User exit for FB HR_ENTRY_DATE and HR_LEAVING_DATE
PARA0001 Enhancement for Determining the Number of Periods
PARA0002 Enhancement for Calculating Annual Salary; IT0008,14,15
PBAS0001 PA: Pers.Admin./Recruitment: Default values and checks
PBAS0002 PA: Enhancements for Personnel Administration - Menu
PBASRP01 PA: User exit distributed reporting
Hope this will help you.
Regards,
Nikhil -
User exit for contract start date in sales order change mode.
24.10.2008
Hi Gurus,
I need to disable the 'contract start date' (VEDA-VBEGDAT) field in Contract data tab at header and item level. Can someone suggest a user exit for the same ???
Regards,
UdaynathDear Udyanath,
Please check these User exits with the help of ABAPer
User exits in the program MV45AFZZ
The user exits which you can use for modifications in sales document
processing are listed below.
USEREXIT_FIELD_MODIFICATION
This user exit can be used to modify the attributes of the screen
fields.
To do this, the screen fields are allocated to so-called
modification groups 1 - 4 and can be edited together during a
modification in ABAP. If a field has no field name, it cannot be
allocated to a group.
The usage of the field groups (modification group 1-4) is as
follows:
- Modification group 1: Automatic modification with transaction
MFAW
- Modification group 2: It contains 'LOO' for step loop fields
- Modification group 3: For modifications which depend on check tables or on other fixed information.
USEREXIT_MOVE_FIELD_TO_VBAK
Use this user exit to assign values to new fields at sales document
header level. It is described in the section "Transfer of the
customer master fields into the sales document".
The user exit is called up at the end of the FORM routine
VBAK_FUELLEN.
USEREXIT_MOVE_FIELD_TO_VBAP
Use this user exit to assign values to new fields at sales document
item level. It is described in the section "Copy customer master
fields into the sales document".
The user exit is called up at the end of the FORM routine
VBAP_FUELLEN.
USEREXIT_MOVE_FIELD_TO_VBEP
Use this user exit to assign values to new fields at the level of
the sales document schedule lines.
The user exit is called up at the end of the FORM routine
VBEP_FUELLEN.
USEREXIT_MOVE_FIELD_TO_VBKD
Use this user exit to assign values to new fields for business data of the sales document. It is described in the section "Copy customer
master fields into sales document".
The user exit is called up at the end of the FORM routine
VBKD_FUELLEN.
I hope this will help you,
Regards,
Murali. -
User exits for Sales Order Data
Hi,
May i ask if there's any user exit that will get data from Sales order like ex. the order qty and the net price and pass to SHP_OBDLV_SAVE_REPLICA like ex in the segment E1BPOBDLVITEMRFO of delivery note.
or get the commodity code (STAWN) from MatMas and pass also to SHP_OBDLV_SAVE_REPLiCA
Thanks in advance..
aileenThese are the user exits for VA01
V45E0001 Update the purchase order from the sales order
V45S0001 Update sales document from configuration
V45S0004 Effectivity type in sales order
V45W0001 SD Service Management: Forward Contract Data to Item
V45A0001 Determine alternative materials for product selection
V45A0002 Predefine sold-to party in sales document
V45A0003 Collector for customer function modulpool MV45A
V45A0004 Copy packing proposal
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45L0001 SD component supplier processing (customer enhancements)
Use this also USEREXIT_SAVE_DOCUMENT
Regards,
Shamma
Maybe you are looking for
-
Posting an XML Variable to a BLS Transaction from a web page
I am working in xMII 11.5 with all the latest service packs. I know this is probably a really basic question but I am stumped. I am trying to pass a multi row and multi column XML data set from a web page into a BLS transaction (actually, two of them
-
Need assistance with recent upgrade. I installed 6.1.2 and now my iPad is sluggish and will not play music from iTunes.
-
We are running e-business suite 11.5.10.1 and XML Publisher comes as embeded product.We just upgraded this embeded XML Publisher to 5.6.3 and started development of few custom XML Publsiher which access data from Standard AR Schema as well as some ot
-
How i can write a program can open html file?
-
Adobe eLearning Suite 6.1
My copmany has bought the Adobe eLearning Suite 6.1 and it was installed a few times now but every time we run the Adobe Application Manager we get an Error code A 12E5 - anyone that can help us with this problem please