User exit with transaction MB*
hi guru.
i have a question with user exit. after read in other topic i still need explanation from other.
my scenario is. whenever user use sap and system generate material document no. . i want system write this mat. doc. no. into text file and store in user 's pc.
after read from other topic i search and found related enhancement/function but not know how to start with.
so, plaes tell me then how to deal with this.
regards.
kittisak.
Hi,
to find the user exits & Badi's for the T-code..
go to table TSTC>enter T-code and execute> get the Program for the t-code..
and go to-se38-->get the package attached to the t-code..
next go to t-code Se15>expand the enhacement tab>enter package under userexit and
execute you will get the list of exits
available...
-->enter package under Badi's tab and
execute you will get the list of Badi's
available...
All the User exits are stored in Table MODSAP..
Regards,
Prabhudas
Similar Messages
-
How to find the user-exit for transaction fpp2
Hi experts,
could you help me how can I find the user-exit for transaction fpp2. I tried to after the package, but I did not find it.Hi,
Use the following program to find user exits of specified code.
*& 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® Modifications
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.
I executed the above program but there are no user exits for the specified Transaction.
Thanks,
Naveen Kumar. -
USer exit for transaction Code APPCHANGE
I want to include a function module to trigger a workflow
in a user exit related to program
SAPLHRHAP_UI_DOCUMENT_REPORT (transaction Code APPCHANGE.)
The workflow will be triggered when SAVE button is pressed.
Thank your for your helpHere is a program that can be used to find user exits per transaction code.
report z_find_user_exit no standard page heading.
tables: tstc, tadir, modsapt, modact,
trdir, tfdir, enlfdir, tstct.
data : jtab like tadir occurs 0 with header line.
data : hotspot(30).
parameters : p_tcode like tstc-tcode obligatory.
at line-selection.
get cursor field hotspot.
check hotspot(4) eq 'JTAB'.
set parameter id 'MON' field sy-lisel+1(10).
call transaction 'SMOD' and skip first screen.
start-of-selection.
perform get_data.
perform write_list.
* FORM get_data *
form get_data.
select single * from tstc
where tcode eq p_tcode.
check sy-subrc eq 0.
select single * from tadir
where pgmid = 'R3TR'
and object = 'PROG'
and obj_name = tstc-pgmna.
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.
endif.
endif.
select * from tadir into table jtab
where pgmid = 'R3TR'
and object = 'SMOD'
and devclass = tadir-devclass.
select single * from tstct
where sprsl eq sy-langu
and tcode eq p_tcode.
endform.
* FORM write_list *
form write_list.
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.
endform.
Regards,
Rich Heilman -
User Exit for Transaction V/76
Hello Gurus,
I'm looking for user exit for transaction V/76, Basically I just need to add an additional checking for the value entered in the product hierarchy using a check table (custom table) functionality. However I can't see any user exit that can be used since this is a view maintenance table/transaction. Can anyone of you experts can confirm that there is user exit for this transaction? If YES, I will continue my searching if there is NO then thanks for the confirmation. Thank you very much in advance!
Best regards -Hi Rous,
Please paste this code and check:
report zuserexit no standard page heading.
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).
call transaction 'SMOD' and skip first screen.
Hope this helps you, reply for queries.
Regards,
Kumar. -
Im trying to update db table in user exit, with the internal table
Im trying to update db table in user exit, with the internal table
my scenario:
loop at itekpo.
updating itekpo -
> at the end of user exit the db table ekpo have to be updated
endloop.
Im updating internal table, using
MODIFY itekpo TRANSPORTING INCO1 INCO2 WHERE ebeln = itekpo-ebeln
where itekpo is internal table, but it is not updating the db table 'ekpo'.
i also tried updating ekpo directly !
Thanks in advanceHi,
you can search in the forum itself,
Try this link for instance
https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=tocreateaBADI&adv=false&sortby=cm_rnd_rankvalue
You can find a code for finding BADI as a report with the following Transaction
finding badis
How to find BADIs
Reward if helpful
Regards
Byju -
Client Copy Error - ERROR: Type 'F' user exit with SYS_ERROR:
Hello,
We want to create a client copy from client 001 to clien 715.
The client copy test runs successfully.
The following error occurs in normal mode of client copy.
1 ETA028XClient copy from "03.11.2010" "17:12:43"
1 ETA029 System ID............................ "IS3"
1 ETA043 Target client........................ "715"
1 ETA030 R/3 Release.......................... "701"
1 ETA354 Basis Support Package..............."SAPKB70107"
1 ETA031 Host................................. "xxx"
1 ETA000 Start in background............. ....." "
1 ETA032 User................................. "SAP*"
1 ETA033 Parameter
1 ETA034 Source client........................ "001"
1 ETA188 Source client user masters............"001"
1 ETA185 Copier profile:......................."SAP_ALL"
1 ETA036 Table selection
1 ETA177 Customizing data ....................."X"
1 ETA037 With application data................ "X"
1 ETA155 Initialize and recreate......... "X"
1 ETA294 Change documents are not copied
2 ETA367XStart analysis of system "17:12:43"
3 ETA108 "/GC1/CC_EXIT_CLIENT_DELETION" executed " 0"(" 0") entries copied
4 ETA114 Runtime " 0" seconds
3 ETA072 Exit program "/GC1/CC_EXIT_CLIENT_DELETION" successfully executed "17:12:53"
A2EE/SAPAPO/OM 012 "Mandant 715:" "Verbindung nicht oder fehlerhaft gepflegt:" "IS3CLNT001" " "
2 ETA102 ERROR: Type 'F' user exit with SYS_ERROR: "/SAPAPO/OM_CLNT_COPY_DOWNLOAD"
2 ETA534 "RCOD:" " 8" "SY-SUBRC:" " 0"
2 ETA191 Program ended abnormally
Can you help me?
thx
TorstenTorsten,
Are you doing a local client copy in a SCM System. I can see it fails & is looking for SCM specific fn modules & user exits.
If yes, has a look at this notes there are some steps that needs to be done for the transactional date:
894490 - Client copy: Transactional data
And re-post it in the SCM forum: SAP Advanced Planning & Optimization (SAP APO)
- Regards, Dibya -
User exit for transaction CK11N
Dear all,
can any body please tell me any user exit for transaction ck11n.
i want to terigger the exit when the save button will be pressed in the ck11n transaction.
i have found one exit "EXIT_SAPLCK21_002" but it is not triggering after save button is pressed.
so please tell me if any other user exit is there to suit my requirement.
thanks
prabhuduttahi,
found the following BADI
check them
COSTINGRUN_CK Edit Costing Run
COST_APPORTION_CK Maint Apportionment Structure Joint Production: Dist Rules
CO_PROD_COSTING_CK Cost Management for Joint Products (Costing, Target Costs)
DATA_EXTENSION_CK For Data Enrichment in Product Costing
DYNPRO_EXTENSION_CK BAdI for Interface Enhancement in Costing
ORDER_COSTING_CK Enables Header Data Changes in Preliminary Order Costing
QUANTITY_STRUCT_CK Enables Quantity/Structure Changes in Costing
SUR_STOCK_TRANSF_CK Overhead on Materials with Stock Transfer Between Plants
CK_KALAMATCON2_CI BAdI for CI Fields for Table KALAMATCON2
VALUATION_CK BAdI for Valuation in Product Costing
Regards -
Process to find user exit for transactions /sapapo/snptlb or /sapapo/sdp94
Hi All,
Can you help me out with the approach to find out user exits for transactions /sapapo/snptlb or /sapapo/sdp94?
What I am looking for is the approach, i mean how to proceed with?
Win full points for detailed answer !!
Thanks a lot - ChandanHi Chandan - this is the same as in any module of SAP:
1) check SPRO
If nothing is found then do the following:
1) Goto SE24 and display class cl_exithandler
2) Enter method GET_INSTANCE and create a break point at Line 25 (CASE sy-subrc)
3) Execute SAP standard transaction and invoke the process for which you need to create custom coding
4) Your break point will stop the process in debug mode - check the values of variable 'exit_name', it will contian the name of the BADI currently being executed.
5) Continue to debug by pressing F8 to see other BADI's
6) Repeat steps 3 thru 5 for each process that you want to find a BADI for
Regards
Andy -
User exit for transaction FCHR
hello,
is there any user exit for transaction FCHR( online cashed checks)??
thanx in adavance..
regards,
Maya.Maya,
Execute the below prog to know all the user extis available for a paritcular transaction.
"Sab Maya Hi"
Say thanks to SDN.
K.Kiran.
*& Report Zkk9.
REPORT ZKK9.
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).
call transaction 'SMOD' and skip first screen. -
User Exit For Transaction F150 (Dunning)
Hi All,
Can any one help me in finding a User Exit for Transaction <b>F150</b> (Dunning).Hello,
Try this one
F150D001
Bye
gabriel -
User exits for transaction VL10B
Hi,
Could anyone please give me the user exit for transaction VL10B.
Regards
KaranHi Karan,
Just check -
V02V0001 Sales area determination for stock transport order
V02V0002 User exit for storage location determination
V02V0003 User exit for gate + matl staging area determination (headr)
V02V0004 User Exit for Staging Area Determination (Item)
V50PSTAT Delivery: Item Status Calculation
V50Q0001 Delivery Monitor: User Exits for Filling Display Fields
V50R0001 Collective processing for delivery creation
V50R0002 Collective processing for delivery creation
V50R0004 Calculation of Stock for POs for Shipping Due Date List
V50S0001 User Exits for Delivery Processing
V53C0001 Rough workload calculation in time per item
V53C0002 W&S: RWE enhancement - shipping material type/time slot
V53W0001 User exits for creating picking waves
VMDE0001 Shipping Interface: Error Handling - Inbound IDoc
VMDE0002 Shipping Interface: Message PICKSD (Picking, Outbound)
VMDE0003 Shipping Interface: Message SDPICK (Picking, Inbound)
VMDE0004 Shipping Interface: Message SDPACK (Packing, Inbound)
REWARD!!
Regards,
Ajinkya -
To differentiate in the user-exits what transaction has executed first
Hi,
I have a problem,
For transactions Iw32 y iw34 EXIT_SAPLCOIH_006 user-exit are called up when a maintenance order is updated
from any of two transactions.
I want to differentiate in the user-exits what transaction has executed first (origin) because sy-tcode in both cases contains iw32 ' because IW38 transaction calls UP always to the transaction iw32 for update of a maintenance order.
thank´s
Regards.If that is the case, and the IW32 is begin called from IW38 via some batch input mechanism, then maybe this code will work. You can wrap your code in this IF statement. Here we are saying that we only want to do this when the tcode is IW32 and it is not being called in batch input(call transaction) or called by another program.
if sy-tcode = 'IW32'
and sy-binpt = space
and sy-calld = space.
endif.
Regard,
Rich Heilman -
User-exit for transaction co13: PP Order Cancel Confirmation
Hello!
Whether prompt, please,
exist what that user-exit for transaction co13: PP Order Cancel Confirmation?
Thanks,
Anton.Hi Antonio,
Please check this all user exits (SMOD) available for CO13.
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
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
Regards,
Ferry Lianto -
BADI/ User Exit for transaction FTR_EDIT/FTR_CREATE initial screen
Hi All,
I want a BADI/User Exit for FTR_EDIT/FTR_CREATE transactions to validate company code and partner fields.
please provide your suggestions.Hi,
here is a coding example that I implemented in the BAdI FTR_TR_GENERIC. This coding is executed when the user press the check button. The method is EVT_TRANSACTION_CHECK. This example is checking the payment date dfaell if it is equal to the system date. If not then a message is sent to the message handler. Here is the code:
DATA: faelligkeit TYPE d,
faelligkeit_text type c length 10,
meldungstext TYPE c LENGTH 100.
FIELD-SYMBOLS: <it_source> LIKE LINE OF pi_proxy_transaction->a_tab_conditions.
IF sy-uname = 'XYZ'.
* BREAK-POINT.
READ TABLE pi_proxy_transaction->a_tab_conditions INDEX 1
ASSIGNING <it_source>.
faelligkeit = <it_source>-dfaell.
CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
EXPORTING
DATE_INTERNAL = faelligkeit
IMPORTING
DATE_EXTERNAL = faelligkeit_text
EXCEPTIONS
DATE_INTERNAL_IS_INVALID = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF faelligkeit <> sy-datum.
CONCATENATE 'Fälligkeit' faelligkeit_text 'incorrect' INTO meldungstext separated by space.
CALL METHOD pi_proxy_messages->set_message
EXPORTING
pi_message_id = 'T0'
pi_message_number = '101'
pi_message_severity = 'E'
pi_message_var1 = meldungstext
EXCEPTIONS
OTHERS = 4.
ENDIF.
ENDIF.
It is not a really nice coding but it shows in a simple way how to use the BAdI.
Regards
Robert -
BADI/ User Exit for transaction FTR_EDIT/FTR_CREATE
Hi All,
I want a BADI/User Exit for FTR_EDIT/FTR_CREATE transactions to validate company code and partner fields.Hi,
here is a coding example that I implemented in the BAdI FTR_TR_GENERIC. This coding is executed when the user press the check button. The method is EVT_TRANSACTION_CHECK. This example is checking the payment date dfaell if it is equal to the system date. If not then a message is sent to the message handler. Here is the code:
DATA: faelligkeit TYPE d,
faelligkeit_text type c length 10,
meldungstext TYPE c LENGTH 100.
FIELD-SYMBOLS: <it_source> LIKE LINE OF pi_proxy_transaction->a_tab_conditions.
IF sy-uname = 'XYZ'.
* BREAK-POINT.
READ TABLE pi_proxy_transaction->a_tab_conditions INDEX 1
ASSIGNING <it_source>.
faelligkeit = <it_source>-dfaell.
CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
EXPORTING
DATE_INTERNAL = faelligkeit
IMPORTING
DATE_EXTERNAL = faelligkeit_text
EXCEPTIONS
DATE_INTERNAL_IS_INVALID = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF faelligkeit <> sy-datum.
CONCATENATE 'Fälligkeit' faelligkeit_text 'incorrect' INTO meldungstext separated by space.
CALL METHOD pi_proxy_messages->set_message
EXPORTING
pi_message_id = 'T0'
pi_message_number = '101'
pi_message_severity = 'E'
pi_message_var1 = meldungstext
EXCEPTIONS
OTHERS = 4.
ENDIF.
ENDIF.
It is not a really nice coding but it shows in a simple way how to use the BAdI.
Regards
Robert
Maybe you are looking for
-
"Unable to load workflow actions from server. Please contact your server."
I get the following error message when I want to create or open a workflow in SharePoint Designer 2007 "unable to load workflow actions from server. Please contact your server administrator." I don't receive this error as a site collection administra
-
Can someone tell me which player I should use to run flv,avi file in my iPad 3 after downloading video from any site ????
-
Changing directly in a Billing doc
Hi Friends, we know that billing doc can be changed in the following areas: Billing date Pricing Account determination Output determination But can pricing date and billing value be directly changed directly in a Billing doc? That means, not via othe
-
Initializing a Zip File to non-First ZipEntry?
hi, i have zip Files that have 4000 zip Entries each. I need to have the ability to ID if a certain ZipEntry is in the file, and then open it directly and start reading from it. I posted about this last week, but i made the question more concise. Her
-
Multi-lingual String Shortening
Hey all, I've got a program that allows the user to name certain objects. These names need to be displayed in a variety of places and there may different amounts of space. I didn't like JLabel's default way of displaying names that are too long to fi