VA02 User exit - authorization (AND same requirement for IW32)
I require user exits in VA02 and IW32 that allows me to stop some users profile from changing Sales Orders and Service Orders.
Our idea is to create an Autorization object and asign it to a user profile.
When users try to Modify a Sales order or a Service Order, system should verify authorization object first. If not then user cannot access to the document.
User exits should be available when document is going to be open, not after opening (meaning that user exits where saving do not work either).
Thanks for your help
If you require some user to use VA02 or IW32 then at the t-code level you can set the authorization.
But when you say "User exits should be available when document is going to be open, not after opening", it is confusing.
Userexit works only after the document is "opened"
You can try fieldexit.
This weblog (/people/ashish.mohapatra/blog/2007/11/28/sd-userexit--i) may also be helpful to you.
Similar Messages
-
User exit EXIT_SAPLL03T_002 and jobs
Hi everybody,
I have a problem with user exit EXIT_SAPLL03T_002 and trx LT12, i put code (the code is in the end) in the user exit in order to update the field QNAME from the standar table LTAP, the sentences for the update are in a job.
The problem is when a run the LT12, put the order and press enter the trx finish normally, but when i see the jobs resumen (SM37) there isnt any job.
Thank you for your help, see you.
INCLUDE ZXLTOU02 *
DATA:
WJ_JTANUM LIKE LTAP-TANUM,
WJ_LGNUM LIKE LTAP-LGNUM,
WJ_WERKS LIKE LTAP-WERKS,
WJ_USER LIKE SY-UNAME,
Parametros para el Job
l_numero LIKE tbtcjob-jobcount, "ID de un job de fondo
l_fecha LIKE tbtcjob-laststrtdt, "Fecha de ejecución más tardía
l_hora LIKE tbtcjob-laststrttm, "Ultima hora de ejecución para
l_jobname LIKE tbtco-jobname VALUE 'JOB_RF',
W_USER LIKE SY-UNAME,
W_HORA LIKE SY-UZEIT,
W_DIA LIKE SY-DATUM.
GET PARAMETER ID 'mb_usuario' FIELD W_USER.
Solo lo realiza para la transaccion LM05 y LM07
y si es por logueo No SAP
***ANTIGUO
*IF ( SY-TCODE EQ 'LM05' OR
SY-TCODE EQ 'LM07' OR SY-TCODE EQ 'LM03' OR
SY-TCODE EQ 'LM04') AND ( W_USER NE '' ).
**********ACTUALIZADO 07/02*********
IF ( SY-TCODE EQ 'LM05' OR
SY-TCODE EQ 'LM07' OR SY-TCODE EQ 'LM03' OR
SY-TCODE EQ 'LM04' OR SY-TCODE EQ 'LT12' ) AND ( W_USER NE '' ).
ojo
UPDATE ZTMB_USERCOLA
SET STATU = ' ' DOCNUM = ' '
WHERE
BNAME = W_USER.
GET PARAMETER ID 'mb_hora' FIELD W_HORA.
GET PARAMETER ID 'mb_dia' FIELD W_DIA.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = l_jobname
IMPORTING
jobcount = l_numero
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
SUBMIT ZUPDATE_LTAP
AND RETURN
VIA JOB l_jobname NUMBER l_numero
WITH WJ_TANUM = T_LTAP_VB-TANUM
WITH WJ_LGNUM = T_LTAP_VB-LGNUM
WITH WJ_WERKS = T_LTAP_VB-WERKS
WITH WJ_USER = W_USER.
Llama a la funcion para cerrar el Job
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = l_numero
jobname = l_jobname
strtimmed = 'X' "Inicio inmediato
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
ENDIF.
REPORT ZUPDATE_LTAP .
PARAMETERS:
WJ_TANUM LIKE LTAP-TANUM, " Numero de OT
WJ_LGNUM LIKE LTAP-LGNUM, " Almacen
WJ_WERKS LIKE LTAP-WERKS, " Centro
WJ_USER LIKE SY-UNAME, " Usuario SAP
W_QNAME LIKE LTAP-QNAME.
data: w_actual, w_timeout type i.
Actualiza el campos de usuario
w_actual = '0'.
w_timeout = 0.
while w_actual = '0' and w_timeout < 300.
w_timeout = w_timeout + 1.
WAIT UP TO 7 SECONDS.
UPDATE LTAP
SET QNAME = WJ_USER ZZRF_BNAME = WJ_USER
WHERE
TANUM = WJ_TANUM
AND
LGNUM = WJ_LGNUM
AND
WERKS = WJ_WERKS.
AGREGANDO 4 ENERO
UPDATE ZTMB_USERCOLA
SET TPICKEO = SY-UZEIT FPICKEO = SY-DATUM
WHERE
LGNUM = WJ_LGNUM
AND
BNAME = WJ_USER.
AGREGANDO 4 ENERO
if sy-subrc = 0.
w_actual = '1'.
UPDATE LTAK SET ZZRF_BNAME = WJ_USER
WHERE TANUM = WJ_TANUM AND
LGNUM = WJ_LGNUM.
endif.
commit work.
endwhile.Hi,
Check the print parameters. Probably after execution you may be deleting the job.
You can change the print parameters during runtime.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
no_dialog = 'X'
user = sy-uname
IMPORTING
OUT_ARCHIVE_PARAMETERS =
out_parameters = params
valid = ws_valid.
IF ws_valid <> space.
params-pdest = 'LOCL'. "Destination
params-primm = ''. "Print Immediately
params-prnew = 'X'. "New Spool Request.
params-armod = '1'. "Print: Archiving Mode - Print Only
params-linct = 65. "Rows
params-linsz = 255. "Cols
params-paart = 'X_65_255'.
params-prrec = sy-uname. "User name
params-prsap = ''. "Print: SAP Cover Page
params-prunx = ''. "PRINT: Host spool cover page
params-prcop = '001'. "number of copies
SUBMIT zmib_fiber_link_background
WITH file = i_file_list-name
WITH rb1 = space
WITH rb2 = c_x
WITH p_launch = c_x
VIA JOB ws_c_session NUMBER ws_c_jobnum
EXPORTING LIST TO MEMORY
TO SAP-SPOOL
WITHOUT SPOOL DYNPRO
SPOOL PARAMETERS params
AND RETURN.
endif.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = ws_c_jobnum
jobname = ws_c_session
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
Also check the sy-subrc after JOB_OPEN.
Regards
Subramanian -
Please send material or good lionk on USER-EXIT,BADI and ENHANCEMENT
Hi All,
Please send some step by step material or good lionk on USER-EXIT,BADI and ENHANCEMENT which will be usefull for beginners like me.
Thanks in advance
SrikantaHi Srikanta,
Please see the SDN page for ABAP Enhancements and Modifications:
https://www.sdn.sap.com/irj/sdn/abap?rid=/webcontent/uuid/109f5161-ee76-2910-cb99-db10b559ef4b [original link is broken]
Cheers,
Ville -
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 -
Want to learn functional and technical requirements for UCM
Hi,
I'm very new to UCM. Can someone please send meplease tell me where to find functional and technical requirements for UCM from user and implementation perspective.
Thanks Very Much,
Andycan you be a little more specific?
Technical info can be found in the documentation. Requirements and so on.
What exactly do you expact from functional requirements ?
Edited by: Yannick Ongena on Nov 30, 2011 5:50 AM -
What are the supported Platforms and system requirements for JSE?
What are the supported Platforms and system requirements for JSE?
Hi There,
The following are the system requirements & the support platforms for JSE :-
* Solaris 9 and 8 Operating Systems (SPARC Platform Edition)
o UltraSPARC II 450-MHz system with 512 MB of memory and 850 MB of disk space
o Recommended: UltraSPARC III 750-MHz system with 1 GB of memory and 1 GB of disk space, or higher.
* Solaris 9 Operating System (x86 Platform Edition)
o Pentium III 500-MHz system with 512 MB of memory and 850 MB of disk space
o Recommended: Pentium III 1-GHz system with 1 GB of memory and 1 GB of disk space, or higher
* Windows 2000 and Windows XP
o Pentium III 500-MHz system with 512 MB of memory and 850 MB of disk space
o Recommended: Pentium III 1-GHz system with 1 GB of memory and 1 GB of disk space, or higher -
Software and Hardware Requirement for Management Agent
Can any one help me to find out the software and Hardware requirements for Oracle 10g Management AGent for various platforms.
Hi I have looked the Metalink Note which is mentioned in the reply but that is not having the exact software and Hardware Requirements (i.e os packages required for unix platforms) for OEM Agent. Please help me to know the requirements pls.
-
What authorization object is required for MIME repository objects?
Hello
Can someone tell me what authorization object is required for displaying MIME repository objects?
Thanks,
József.Hi,
This thread may help you.
Re: Authorizations for stylesheets/MIME?
Thanks,
JituK -
Difference between user exit,enhancement and BAdi
hello guys,
what is the difference between user exit,enhancement and BAdi.
Please do let me know..
Thanks in advance.
regards,
praveen.Pls do search the forum before posting*
-
Gathering Technical and Business Requirements for SAP PI
I need to some documents and tools, or interview guide & questionnaire to gather the stakeholders' technical and business requirements for SAP PI
Thanks for the links,
I am quite new at SAP and currently trying to elaborate should i use SAP PI or not based on my project stakeholder's requirements.
And my biggest problem right now is how to capture technology and business requirements and match them with SAP PI
I plan to use this format while requirements gathering about integration platform:
1- Draft Requirements
Q- What is the names and status of sending and receiving application and how they will be used
2- Detailed Requirements
Q- Connectivity, Administrative and Business related questins
3- Administrative and project management information
Q- Which applications are involved, who is the original supplier? Who is technical contact at the supplier
4- Business requirements
Q- Questions about the information flow which will support some business processes
5- Connectivity to applications
Q- Questions about connectivity mechanism, file formats (flat file or XML or something else), data access methods and so on
What do you think about the general concept?
Edited by: Alper Celik on Feb 2, 2009 10:37 AM -
Are SUID and SGID required for oracle functionlities?
Could anyone please confirm that the below oracle files and their permissions SUID and SGID are valid (and actually required) for oracle functionality? Thanks.
SUID binary /opt/oracle/11.2.0/bin/extjob
SUID binary /opt/oracle/11.2.0/bin/oradism
SUID binary /opt/oracle/11.2.0/bin/oracle
SUID binary /opt/oracle/11.2.0/bin/nmb
SUID binary /opt/oracle/11.2.0/bin/nmo
SUID binary /opt/oracle/11.2.0/bin/emtgtctl2
SUID binary /opt/oracle/11.2.0/bin/nmhs
SUID binary /opt/oracle/11.2.0/bin/jssu
SUID binary /opt/ORCLfmap/prot1_64/bin/fmputlhp
SGID binary /opt/oracle/11.2.0/bin/oracle
SGID binary /opt/oracle/11.2.0/bin/emtgtctl2Fresh installation of 11.2
ll extjob oradism oracle nmb nmo emtgtctl2 nmhs jssu fmputlhp
-rwsr-s--x 1 oracle oinstall 66239 Jun 2 2013 emtgtctl2
-rwsr-x--- 1 root oinstall 1223782 Jun 2 2013 extjob
-rwsr-x--- 1 root oinstall 43514 Jun 2 2013 jssu
-rws--x--- 1 root oinstall 34198 Jun 2 2013 nmb
-rws--x--- 1 root oinstall 71524 Jun 2 2013 nmhs
-rws--x--- 1 root oinstall 45157 Jun 2 2013 nmo
-rwsr-s--x 1 oracle oinstall 201099176 Jun 2 2013 oracle
-rwsr-x--- 1 root oinstall 68278 Aug 14 2009 oradism
-rwxr-x--- 1 oracle oinstall 35300 Aug 14 2009 fmputlhp
ll /opt/ORCLfmap/prot1_64/bin/fmputlhp
-r-sr-xr-x 1 root root 35300 Jun 2 2013 /opt/ORCLfmap/prot1_64/bin/fmputlhp -
User exit to modify a service order (IW32)
Hi
I require a user exit to modify a service order (IW32) that is generated via the repair procedure functionality linked to a Sales order.
I need to change at the operation level:
1- Add an operation with the service material from the sales order. Get the purchasing group data from the material master.
2- Change the first operation - replace the default purchasing group
THanksSid,
[PM/CS User-Exits etc|http://pjatkin.users.btopenworld.com/documents/PMCSUserExits.pdf]
Might be possible by using IWO10009 (at save user-exit) with function modules:
CO_BP_AFVG_BT_FETCH
CO_BT_AFVG_UPDATE
PeteA
[www.pjas.com] -
Reg user exits exit_saplogdl_005 and exit_saplogsl_007 for va01 tcode
Hi All,
I have a requirement to add new fields to additional dataB fields for the transactions va01,va02 and all that we can do with screens 4462 of main screen 8459 and we can write the code in the user exit userexit_move_field_to_vbap in program MV45AFZZ. But in our requirement they also mentioned we have to write the code in the fun mod exits "exit_saplogdl_005" and "exit_saplogsl_007"
These exits I am able to find only in my version ECC6.O not in 4.7 and all and also I don't find any parameters for this function module exits. Can any body throw some idea how I can use of this fun mod exits.
Thanks&Regards
MaheshHi All,
I have a requirement to add new fields to additional dataB fields for the transactions va01,va02 and all that we can do with screens 4462 of main screen 8459 and we can write the code in the user exit userexit_move_field_to_vbap in program MV45AFZZ. But in our requirement they also mentioned we have to write the code in the fun mod exits "exit_saplogdl_005" and "exit_saplogsl_007"
These exits I am able to find only in my version ECC6.O not in 4.7 and all and also I don't find any parameters for this function module exits. Can any body throw some idea how I can use of this fun mod exits.
Thanks&Regards
Mahesh -
Need user exit lists and corresponding Program name for Transaction F110
Hi all,
I have a requirement to update trading partner field based on payment method using Exits or BADI during payment posting (which is carried out in F110). Please give me the exact user exit/program for this requirement.
Thanks in advance
Moderator message: please do more research before asking, show what you have done yourself when asking.
Edited by: Thomas Zloch on Jun 22, 2011 9:19 AMHi all,
I have a requirement to update trading partner field based on payment method using Exits or BADI during payment posting (which is carried out in F110). Please give me the exact user exit/program for this requirement.
Thanks in advance
Moderator message: please do more research before asking, show what you have done yourself when asking.
Edited by: Thomas Zloch on Jun 22, 2011 9:19 AM -
User-exit CO11N and CO13 (for GM)
Hello to all!
I need a user-exit (or something like this) in transaction CO11N and CO13 where also the goods movements are available. In all the u201Cnormalu201D User-Exits while confirmation (CONFPP01 until CONFPP07) I have only tables like AFKO, AFPO, AFVC, AFRU u2026 in access but I need the GOODSMOVEMENTS for a further processing step for the movement with movement type 101.
Thanks in advance,
RegardsDid you ever tried searching in SAP enhancements for your req
try these.... Find yourself
CONF0001 Enhancements in order confirmation
CONFPI01 Process order conf.: Calculate cust.specific default values
CONFPI02 Process order confirmation: Customer spec. input checks 1
CONFPI03 Process order conf.: Cust. spec. check after op. selection
CONFPI04 Process order conf.: Customer specific input checks 2
CONFPI05 Process order conf.: Cust. spec. enhancements when saving
CONFPI06 Process order confirmation: Actual data transfer
CONFPM01 PM/SM order conf.: Determine cust. specific default values
CONFPM02 PM/SM order confirmation: Customer specific input checks 1
CONFPM03 PM/SM order conf.: Cust. spec. check after op. selection
CONFPM04 PM/SM order conf.: Customer specific input check 2
CONFPM05 PM/SM order conf.: Cust. specific enhancements when saving
CONFPP01 PP order conf.: Determine customer specific default values
CONFPP02 PP order conf.: Customer specific input checks 1
CONFPP03 PP order conf.: Cust. specific check after op. selection
CONFPP04 PP order conf.: Customer specific input checks 2
CONFPP05 PP order conf.: Customer specific enhancements when saving
CONFPP06 PP Order Confirmations: Actual Data Transfer
CONFPP07 Single Screen Entry: Inclusion of User-Defined Subscreens
CONFPS01 PS confirmation: Determine customer specific default values
CONFPS02 PS confirmation: Customer specific input checks 1
CONFPS03 PS confirmation: Customer specific check after op. selection
CONFPS04 PS confirmation: Customer specific input checks 2
CONFPS05 PS confirmation: Customer specific enhancements when saving
Maybe you are looking for
-
"There was a problem enabling iCloud Backup"
I currently have an iPad 2, and my husband has an iPod Touch (not sure of the generation - its about a year old). As of tomorrow, we'll both have iPhone 4S's. We both use my iTuned account for purchasing apps and music. I've finally got iOS 5 up a
-
How SRM Substitute in UWL can be sc and Po seperatly insted of Standard ALL
we are using Universal work list in SRM 7.01 As per Requirement Manage Substitution need document wise like Shopping cart. .when we activated the shopping cart specific Substitution Rule only Shopping cart Tasks should be Shared to Nomine. Not other
-
IMac boots straight into Windows 7
I installed Windows 7 Ultimate x64 using Bootcamp on an iMac 9,1. Now when I turn my computer on, it boots straight into Windows 7 by default. If I hold down Option while booting and select Mac then it does boot correctly into OS X 10.6.1. Is there a
-
What's up with the fat characters in my PDF? (I and L)
Outlined type in illustrator (CS 1) exported to PDF and then combined (2 pages) in Acrobat makes my resultant file have "FAT" characters, namely the I and Ls, respectively. Acrobat 6.0.2 professional, Illustrator CS 1. HELP!
-
Erratic Apple mouse-pointer behavior?
I made the pointer bigger with the wired USB mouse that came with my Mac Pro. It does the same with my other Apple Pro mouse. I bought a new mouse-pad, the old was dirty. The pointer jumps all over, sometimes it does not move, or moves where I can't