on 05-02-2006 10:55 PM
Hello,
I want to add custom fields to SAP Standard transactions like FB01 and so on..Does anyone know the approach to it like any userexit or something.
Thanks,
Mohsin
Hello Mohsin,
As u have indicatd that u would want an approach for addition of a field to an std transaction then this is the way fwd..
1. Check if the trx has any screen exits or any Badi which can be used to add the custome field.
2. After the field is added (assuming u have an exit/badi) check for an exit to populate the field on the screen and also moving to field value to the program.
3. You will have to add custome field to the database where it will get stored.
4. Any kind of validation if necessary in the exit.
Roughly these are the steps u need to take for adding any custom field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mohsin,
You can try out Easy Enhancement Workbench(Tcode is EEWB) to enhance the standard transaction.
Just goto the transaction EEWB, create a new project.
It will take you to a wizard where you can specify the transaction that you want to enhance, then it will ask you to specify the fields that you want to add to the transaction.
The beauty of this tool is, it will create all the structures automatically and append the new fields added to the transaction to all the tables related to that transaction.
It will also generate a FM and a screen that you can customize as per your need.
Just check out this tool, EEWB.
Reward helpful answers.
Regards,
Amit Mishra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mohsin,
There are following <b>user exits</b> for FB01.
Exit Name Description
<b>F050S001</b> FIDCMT, FIDCC1, FIDCC2:
Edit user-defined IDoc segment
<b>F050S002</b> FIDCC1: Change IDoc/do not send
<b>F050S003</b> FIDCC2: Change IDoc/do not send
<b>F050S004</b> FIDCMT, FIDCC1, FIDCC2:
Change outbound IDoc/do not send
<b>F050S005</b> FIDCMT, FIDCC1, FIDCC2
Inbound IDoc: Change FI document
<b>F050S006</b> FI Outgoing IDoc: Reset Clearing
in FI
<b>F050S007</b> FIDCCH Outbound:
Influence on IDoc for Document
Change
<b>F180A001</b> Balance Sheet Adjstment.
<b>FARC0002</b> Additional Checks for Archiving
MM Vendor Master
Data
<b>RFAVIS01</b> Customer Exit for Changing Payment
Advice Segment
Text
<b>RFEPOS00</b> Line item display:
Checking of selection
conditions
<b>RFKORIEX</b> Automatic Correspondance.
<b>SAPLF051</b> Workflow for FI (pre-capture, release for payment)
But u can Use the following <b>BAdi FI_HEADER_SUB_1300</b> which includes Screen enhancement for document header .
Regards,
Ranjit Thakur.
Message was edited by: Ranjit Thakur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
The following code is used to find the user exits for any sap standard transaction.
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.
*---End of Program
Please reward for the same.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For FB01 there are no screen exits exist.
Thanks,
Vamshi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
checkout
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
P.S award the points .
Thanks
Saquib
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.