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 AM
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 AM
Similar Messages
-
Table to find spool no and corresponding program name
Is there any Table to find spool no and corresponding program name. I know one table that will give only for background jobs TBTCP table. I want fore ground also
table: TSP01
Way to fetch spool number is:
CONCATENATE sy-repid+0(9)
sy-uname+0(3)
INTO lc_rq2name.
SELECT rqident FROM tsp01
INTO TABLE li_spool
WHERE rq2name EQ lc_rq2name
AND rqowner EQ sy-uname.
*** Sort spool table so that latest spool entry is at top
SORT li_spool STABLE BY rqcretime rqident DESCENDING.
*** Read the first line of the table to get the spool number
READ TABLE li_spool INTO lwa_spool INDEX 1.
lv_spoolid = lwa_spool-rqident.
ags. -
Program name for Transaction code
Hi All,
Is there an other table for program name for a given transaction code other than TSTC? I am asking this question beacuse for TCODE MM01, program name in TSTC is given as SAPMMG01, where as if you goto MM01->System->Status->Program it is giving as SAPLMGMM.
Regards,
Prashant.Hi All,
I want the table name for TCODE other than TSTC.
Regards,
Prashant. -
Need user exit when deleting an invoice using MIR6 transaction
Hi all,
I m trying to delete an Invoice using MIR6 transaction. And I need a user exit to be triggered on deletion of an Invoice.
Can anybody help me and let me know if any user exit is available there?
Points will be rewarded.
thanks
AshishHi
Business Add-Ins
Business Add-Ins are a new SAP enhancement technique based on ABAP Objects. They can be inserted into the SAP System to accommodate user requirements too specific to be included in the standard delivery. Since specific industries often require special functions, SAP allows you to predefine these points in your software.
As with customer exits (SMOD/CMOD [Page 40]), two different views are available:
In the definition view, an application programmer predefines exit points in a source that allow specific industry sectors, partners, and customers to attach additional software to standard SAP source code without having to modify the original object.
In the implementation view, the users of Business Add-Ins can customize the logic they need or use a standard logic if one is available.
In contrast to customer exits, Business Add-Ins no longer assume a two-system infrastructure (SAP and customers), but instead allow for multiple levels of software development (by SAP, partners, and customers, and as country versions, industry solutions, and the like). Definitions and implementations of Business Add-Ins can be created at each level within such a system infrastructure.
SAP guarantees the upward compatibility of all Business Add-In interfaces. Release upgrades do not affect enhancement calls from within the standard software nor do they affect the validity of call interfaces. You do not have to register Business Add-Ins in SSCR.
The Business Add-In enhancement technique differentiates between enhancements that can only be implemented once and enhancements that can be used actively by any number of customers at the same time.
In addition, Business Add-Ins can be defined according to filter values. This allows you to control add-in implementation and make it dependent on specific criteria (on a specific Country value, for example). All ABAP sources, screens, GUIs, and table interfaces created using this enhancement technique are defined in a manner that allows customers to include their own enhancements in the standard.
A single Business Add-In contains all of the interfaces necessary to implement a specific task. In Release 4.6A, program and menu enhancements can be made with Business Add-Ins. The actual program code is enhanced using ABAP Objects. In order to better understand the programming techniques behind the Business Add-In enhancement concept, SAP recommends reading the section on ABAP Objects
DEFINING THE BADI
1) execute Tcode SE18.
2) Specify a definition Name : ZBADI_SPFLI
3) Press create
4) Choose the attribute tab. Specify short desc for badi.. and specify the type :
multiple use.
5) Choose the interface tab
6) Specify interface name: ZIF_EX_BADI_SPFLI and save.
7) Dbl clk on interface name to start class builder . specify a method name (name,
level, desc).
Method level desc
Linese;ection instance methos some desc
8) place the cursor on the method name desc its parameters to define the interface.
Parameter type refe field desc
I_carrid import spfli-carrid some
I_connid import spefi-connid some
9) save , check and activate adapter class proposed by system is
ZCL_IM_IM_LINESEL is genereated.
IMPLEMENTATION OF BADI DEFINITION
1) EXECUTE tcode se18.choose menuitem create from the implementation menubar.
2) Specify aname for implementation ZIM_LINESEL
3) Specify short desc.
4) Choose interface tab. System proposes a name fo the implementation class.
ZCL_IM_IMLINESEL which is already generarted.
5) Specify short desc for method
6) Dbl clk on method to insert code..(check the code in AAA).
7) Save , check and activate the code.
Some useful URL
http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
www.sapgenie.com/publications/saptips/022006%20-%20Zaidi%20BADI.pdf
http://www.sapdevelopment.co.uk/enhance/enhance_badi.htm
http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/c2/eab541c5b63031e10000000a155106/frameset.htm
Now write a sample program to use this badi method..
Look for BBB sample program.
AAA
data : wa_flights type sflight,
it_flights type table of sflight.
format color col_heading.
write:/ 'Flight info of:', i_carrid, i_connid.
format color col_normal.
select * from sflight
into corresponding fields of table it_flights
where carrid = i_carrid
and connid = i_connid.
loop at it_flights into wa_flights.
write:/ wa_flights-fldate,
wa_flights-planetype,
wa_flights-price currency wa_flights-currency,
wa_flights-seatsmax,
wa_flights-seatsocc.
endloop.
BBB
*& Report ZBADI_TEST *
REPORT ZBADI_TEST .
tables: spfli.
data: wa_spfli type spfli,
it_spfli type table of spfli with key carrid connid.
*Initialise the object of the interface.
data: exit_ref type ref to ZCL_IM_IM_LINESEL,
exit_ref1 type ref to ZIF_EX_BADISPFLI1.
selection-screen begin of block b1.
select-options: s_carr for spfli-carrid.
selection-screen end of block b1.
start-of-selection.
select * from spfli into corresponding fields of table it_spfli
where carrid in s_carr.
end-of-selection.
loop at it_spfli into wa_spfli.
write:/ wa_spfli-carrid,
wa_spfli-connid,
wa_spfli-cityfrom,
wa_spfli-deptime,
wa_spfli-arrtime.
hide: wa_spfli-carrid, wa_spfli-connid.
endloop.
at line-selection.
check not wa_spfli-carrid is initial.
create object exit_ref.
exit_ref1 = exit_ref.
call method exit_ref1->lineselection
EXPORTING
i_carrid = wa_spfli-carrid
i_connid = wa_spfli-connid.
clear wa_spfli.
check the following user exits for MIR6
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
Regards
Anji
Message was edited by:
Anji Reddy Vangala -
Hi folks.
I am working with ECC 6.0 and I would like to kow if there is an user exit (that works during creation of a Request (workbench and customizing) ) that could give me the request number that is being created during that moment.
There are some exits/badis for the releaseing moment/changing of a request, but I need some procees that could give me the request number being created !!!
Example:
BADI: CL_IM_CTS_REQUEST_CHECK / method IF_EX_CTS_REQUEST_CHECK~CHECK_BEFORE_CREATION, does not have, at that moment, the request number that is being created, since the request number is created by SAP a few moments before this method...
Does anyone already implemented a process like this one before ?
Thansk in advance!!I don't think there is one, but you may either implement an implicit enhancement option (routine GET_NEXT_NUMBER in program SAPLSTRD), or make a custom program which creates transport requests (it is then easier to get the number).
-
Fetch Report Program names for a given Package
Hi,
I need to fetch all the report program names for a given pakage. I tired TADIR table but couldnt fetch report details alone..
thanks,
sri
Moderator message: very basic, please do more own research before asking, e.g. look at a few TADIR entries of different object types, also discover the repository information system.
Edited by: Thomas Zloch on Feb 23, 2011 2:56 PMDan is right to be cautious, i've seen this cause problems.
It's not very difficult to make the chnages in BCS, and if you have a lot of them/frequent changes, you can always use create an upload method
and then make all future changes by .txt file -
Packing list - Driver Program and Layout set name for Smartform
Hi ,
Anybody knows about print program and Layout set name for PACKING LIST in Smartform.
Regards,
Kumar SHi Bhuvaneswari,
For Creating Adobe Interactive form, you need the below configuration:
Server side:
Server running on ABAP/Java stack configured with ADS
For ADS Configuration, follow the below link:
https://service.sap.com/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=0000894009&nlang=E
Client Side:
The required Reader version depends on your usage situation.
For SAP Interactive Forms by Adobe, we generally recommend the following:
Adobe Acrobat Version 7.0. 9 or higher
Adobe Reader Version 7.0.9 or higher
If you require forms for one of the scenarios listed below, you must use Reader 8.1.
These are:
Forms in Web Dynpro applications that are integrated at runtime using xACF (Active Components Framework) ZCI (Zero Client Installation).
Forms in scenarios that use digital signatures.
If you use interactive forms in Web Dynpro for Java and these interactive forms are included using ZCI (Zero Client Installation) at runtime, you must read Note 1055911. Note 1055911 specifies the required reader version and contains further detailed information.
Reward points if found helpful.
Regards,
Arafat -
Need user exit / screen exit for SE38 program variant save
Hi ABAPers,
Need user exit / screen exit for SE38 program variant save action to log addition details of variant changes done and relavent ticket details in z table.
Currently table VARID table stores only latest change and not history.
We need to avoid logging enabling for table VARID and custom field addition in it.
Please advice.
-NileshHI Nilesh,
I don't think any Exits available for this.
Better u go for Implicit Enhancement.
regards
Sreekanth -
Need User Exits for Creation of Delivery and for Posting Goods Issue
Hi,
I need User Exits for
Creation of Delivery
Posting Goods Issue
I need to make some checks regarding customer license expiration and if checks fail, I need to stop Creation of Delivery and Posting Goods Issue.
Thanks in advance,
Will reward,
MindaugasIn the delivery you can use userexit USEREXIT_SAVE_DOCUMENT_PREPARE to make your checks and send an error message to the user in case they fail.
You can find this user exit (form routine) in include MV50AFZ1.
Hope that helps,
Michael -
need user exit name
which allow me to process my logic
when exactly the sales order is generated for VA01.
I want to process my logic at that time only.
points will be awarded for good answers.
Thanks
RajhI,
Check out this documentation.....
http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
Under user exits>user exits in sales>user exits in sales document processing
Have a look at the following exits
For Header fields: Modify user exit in include MV45AFZZ(USEREXIT_MOVE_FIELD_TO_VBAK) to populate the new fields.
For Item level fields: Modify user exit in include MV45AFZZ(USEREXIT_MOVE_FIELD_TO_VBAP) to populate the new fields.
USEREXIT_SAVE_DOCUMENT_PREPARE
<b>Reward points</b>
Regards -
How to find user exit implemented in the program
how to find user exit implemented in the program or standerd transaction
try this program to get the list of all the user exits for a transaction...
*& Report Z_USER_EXIT *
*REPORT Z_USER_EXIT .
REPORT z_find_userexit NO STANDARD PAGE HEADING.
*& Enter the transaction code that you want to search through in order
*& to find which Standard SAP User Exits exists.
*& Tables
TABLES : tstc, "SAP Transaction Codes
tadir, "Directory of Repository Objects
modsapt, "SAP Enhancements - Short Texts
modact, "Modifications
trdir, "System table TRDIR
tfdir, "Function Module
enlfdir, "Additional Attributes for Function Modules
tstct. "Transaction Code Texts
*& Variables
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
*& Selection Screen Parameters
SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK a01.
*& Start of main program
START-OF-SELECTION.
Validate Transaction Code
SELECT SINGLE * FROM tstc
WHERE tcode EQ p_tcode.
Find Repository Objects for transaction code
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 = enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
Find SAP Modifactions
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.
Take the user to SMOD for the Exit that was selected.
AT LINE-SELECTION.
GET CURSOR FIELD field1.
CHECK field1(4) EQ 'JTAB'.
SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN. -
hi.,
This is satish we requesting to all. I need user exits materials. It is very important me so please any one send the link or pdf file.
thanking you allPlease see the following program. This helps you to find user_exits...
Start -
REPORT ZFIND_USEREXITS .
TABLES : tstc, "SAP Transaction Codes
tadir, "Directory of Repository Objects
modsapt, "SAP Enhancements - Short Texts
modact, "Modifications
trdir, "System table TRDIR
tfdir, "Function Module
enlfdir, "Additional Attributes for Function Modules
tstct. "Transaction Code Texts
*& Variables
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
*& Selection Screen Parameters
SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK a01.
*& Start of main program
START-OF-SELECTION.
Validate Transaction Code
SELECT SINGLE * FROM tstc
WHERE tcode EQ p_tcode.
Find Repository Objects for transaction code
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 = enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
Find SAP Modifactions
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.
Take the user to SMOD for the Exit that was selected.
AT LINE-SELECTION.
GET CURSOR FIELD field1.
CHECK field1(4) EQ 'JTAB'.
SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
*--End--
Hope this`ll work .
Thanks -
Need user-exit or BTE on save of a FI-document in 4.6D
Hi,
I need a Business Transaction Event or user-exit on save of a FI-document (transaction FB01, or any other possible posting - for example as a follow-on document after SD purchase or sales invouce). The trick is, that I must have an internal FI-document number (field BKPF-BELNR) already assigned to the document and to use this number for my purposes.
I tried to use some of the BTE-s (1110, 1120, 1130, 1050 and 1060) without success - the belnr is not yet assigned when the system passes to this customer exits.
Could someone help me with this please? The important thing is - I need BELNR already assigned to the document. All these in 4.6D enterprise environment.
Thanks in advance.
Regards,
Ivaylo Mutafchiev
Senior SAP BC/Abap Consultant
VBS-Varna
Bulgaria
P.S. Sorry for cross-posting this question here and in the 'Enhancements and Modifications' forum - IMHO this forum is checked much often than the other one.
Message was edited by:
Ivaylo MutafchievWell,
today my colleagues from SD tested both inbound and outbound processes (Order/Delivery/Invoce with consequent FI document), and we found that the program execution doesn't pass trought function modue for BTE 1030 when the FI document, which follows the SD invoice, is automaticaly created.
Any suggestions? Once again - the initial requirement is - I need to pass trought the BTE on (manual or automatic) creation of a FI-document and to have BELNR of the FI document populated.
Thankst in advance.
Regards,
Ivaylo -
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 -
Need User exit/BADI or BTE for FF_5
Hi,
My requirement is to enhance the automatic clearing rules for tcode ff_5.
Program RFEBKA00 will upload bank statement items based on the external transaction codes provided by the banks .
The standard posting rules will clear a GL bank account using a set of algorithms for further interpretation
set of standard algorithms do not meet the clearing criteria .hence i need user exit / badi/bte to enhance the automatic clearing rules.
EXIT ZXF01U01& or FEB_BADI are triggering before posting the document.hence i think we can not use these.
Please suggest me the alternate solution.Hi,
We are facing a similar requirement. We are trying to enhance the interpretation logarithm using search string. The requirement is to update the text field with a Constant Prefix + a number from the Notes to Payee field. For e.g.:
The BAI file transaction data is like:
16,169,94906,V,120108,0000,6008ABS43400024460,783517/
88,TBS EUROPE LTD 203647 10293164
88,/ENTRY-06 FEB
88,TRF/REF 6008ABS43400024475
88,783517 BANK GIRO CREDIT
We defined a search string to find the text 'TBS EUROPE LTD' and if it is found, the search string fetches the number '783517' from the Notes to Payee field and thereafter, at the time of posting, the text field has to be updated with '120108 TBS EUROPE LTD 783517', where 120108 is the validity date of the incoming money through this transaction and which does not form part of the Notes to Payee field.
Also, if just the number '783517' has to be updated in the text field.
Please suggest how to achieve this functionality.
Thanks in advance.
Regards
Sourabh
Maybe you are looking for
-
I have 3 separate google calendars that I use often. I have them all shared with each other with r/w permissions to make things easier on the go. The problem comes in with iCal syncing. I have all three calendars in iCal under separate accounts. some
-
Hi Experts, I uploading Data by using BDC for this i use flat file is .CSV file.For uploading that .csv file i am using the function module 'WS_FILENAME_GET' . For this i used the function module for uploading 'WS_FILENAME_GET" .. Then its worki
-
Packaging material showing on delivery note
Hi Sap Gurus, Could any one help me out in this issue on Packaging material number showing on delivery note. determination is based on masterdata Could any one help me out in this issue Thanks and Regards Edward
-
JSF - Duplicate items in menuBar
This is the original post: Re: JSF - Duplicate items in menuBar I was wondering if anyone ever figured out why the menu item beans being loaded onto the menuBar twice? I have the same problem. And I also have another problem where the submenu items d
-
Free photo services other than Facebook and Flickr with iPhoto integration?
Currently we use Facebook, though I can't assure anonymity when posting images from my facebook account on a particular bulletin board, due to real name being associated with the image being hosted in Facebook. Flickr, for reasons beyond my control i