User exit with a field in custom z table
hi ..
I have a custom z table with a z field in it. This z field is linked with t800d data base table. when a report is executed using this t800d table they want text data from the z field, but it is not displaying . they said the possible solution would be defining a user exit. how can i do this?
Hi,
Your requirement is not clear. Can you explain a bit.
Regards,
Atish
Similar Messages
-
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 -
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 -
User exit; Article master SAP Retail for MVKE table?
Is there a user exit in SAP Retail for the MVKE table?
The articles is maintained in a third-party system and are transferred to SAP via Idoc. For sales sets, article category = 10, these requires a item category = ERLA in SAP (MVKE-MTPOS) so that the sales set "explodes" in the sales order.
The third-party system doesn't maintain sales org-spesific data for the articles, therefor we use one ref.article for all article groups. And because sales sets exits in many article groups, we found it difficult to have ref.articles for all of these article groups.
Also the article type is also "normal",so the only way to differentiate the sales sets, are via article category. But since SAP has no link between article category and item category in customizing (as far as I know), I wonder if there is a user-exit to set the item category based on the article category?Hello Sonika,
WE_PLU is generally used along with the POS interface.
Please check this for more details
http://help.sap.com/saphelp_470/helpdata/en/ed/df673c86d19b35e10000000a11402f/frameset.htm
Article Master Uploading in IS- Retail system
This is basically your call depending on what data the message type is intended to carry and the use. ARTMAS should be the choice in your case.
Regards,
Nimish -
BADI or User exit for FB50 to update custom field in table COEP
Hi all,
i have added one custom field in table COEP through include CI_COBL .
when i do posting through sales order(VA02) or purchase order(ME22n) that custom fields in COEP get updated with controlling document
and through BADI AC_DOCUMENT i m updating that custom field in COEP.
but when i do manual posting through FB50 controlling document is generated in COEP but i m not able to update that custom field
because in this case BADI AC_DOCUMENT is not get triggered.
is there any BADI or User exit or enhancement spot for FB50 through which i can update that custom field in table COEPHi Sandy,
Thanks for u r reply,
RFAVIS01 is not getting triggered through FB50
and F180A001 ( EXIT_SAPLF048_001) is getting triggered but it doesnt contain COEP field in its parameter
import - F180A_DOC_HEAD_TAB
F180A_DOC_ITEM_TAB
changing - RELATION_TAB -
User exit or Badi to add custom fields in selection screen of tcode CATS_AP
Hi Guys,
I want to add a custom field to the selection screen of report RCATS_APPROVE_ACTIVITIES (tcode CATS_APPR_LITE).
I also want to display filtered by this custom fields. Please let me know the user-exit (prefebly) or BADI.
I will appreciate if somebody can share the steps.
Thanks,Hi,
Yes there is, the BADI name is CATS_REPORTING.
It can be views in transaction SE17.
thanks.
JB -
USER EXIT or BADI to add custom fields in QI06 Output
Hi Gurus,
I have tried to find out Suitable User Exit / BADI to add custom fields in QI06 ( Collective Maintenance Display) output. but in vain..
We found USer Exits -QLIB0001/QLIB0002 .
Badi- QB_PLAN_SELECTION_P, QB_Q_INFO_RECORD,QB_QM_SYSTEM_COMPARE,ALV_SWITCH_GRID_LIST
which are not useful.
So need your Suggestions / help in finding out suitable exit/ BADI.
Thanks in Advance,
Lalit.Hi,
You can use the function module SXV_GET_CLIF_BY_NAME to find more BADI. Set a break point and run QI06 until the end.
I hope this helps you
Regards
Eduardo -
ABEND in Java User Exit with RAW DataType
I have a Java User Exit Extract running against a trail file that has been pumped to the GoldenGate instance in question. The extract starts up without any issues, but gives the following error after I update a record that has a RAW datatype as the primary key:
JAVAWRITER(javawriter.c:269) [ERROR]: Error occurred (Java exception): UEDataSource.createOperation:
com.goldengate.atg.datasource.InvalidTransactionState: A new operation was received without first receiving a BEGIN transaction. This can happen when processing is resumed in the middle of a transaction, or when there are "before" images in the trail that are not being sent to the user exit (always include "GetUpdateBefores" in the user-exit parameter file).
I have tried a number of things to try to resolve this, but I can't seem to make this work. the params for this extract currently looks like this:
extract uePump
sourcedefs ./dirdef/my_defgen.def
setenv (GGS_USEREXIT_CONF = "dirprm/javaue.properties")
getupdatebefores
cuserexit ./dirprm/libggjava_ue.so CUSEREXIT passthru includeupdatebefores
table my_schema.B_PLN_DIR, fetchmodcols (PLN_DIR_ID, *);
table my_schema.*;
... I've tried leaving off the "includeupdatebefores" argument to the cuserexit, leaving out the fetchmodcols handling for the table with the RAW PK field, but I still get the error shown above.
Any help / pointers is much appreciated.includeupdatebefores (lowercase) doesn't work; you must use the uppercase INCLUDEUPDATEBEFORES !!
-
Help on User Exits with example needed
Hello Experts,
Need help/material on:
1)Understanding Advanced Customization (VOFM, User Exits)
2)Calculating Freight Charges
3)Integrating Credit and Payment Cards
4)Interfacing with Other Modules (MRP, AR)
5)Using Batch Delivery Processing
Regards
InnovaHi,
There are a number of techniques SAP have used over the years to implement user-exits.
The most recent exits will be found in CMOD. Using CMOD (or SMOD), you can list all the enhancements available, that use this technique. As usual in the SAP world, the later the version of SAP you are using, the more exits are available.
Other exits do not use the enhancement technique. For example, in Sales Order Processing (SAPMV45A), SAP have provided empty forms, such as USEREXIT_SAVE_DOCUMENT_PREPARE that can be used to provide customer functionality. With one client, this was used to set the blocking indicator on a sales order, if a manual change had been made to pricing. The requiredscript is written in between form and end form.
Another technique is the use of validation and substitution rules in the financial modules.
The best way to find the user exits available is through the IMG. The relevant nodes will take you to where the customisation can be performed. Usually, the associated IMG note details the use of each exit, though there are gaps.
Award points if helpful.
Message edited by
Mohan -
ALV issue - capturing user changes in editable fields using custom button?
Hi,
I created a custom button in ALV tool bar. And also in my ALV grid I have couple of fields Editable option. User can change values for these 2 fields.
My question is -
After changing values for these editable fields(more than 1 record) , user will click on custom button and then I have to update all the user changed values in to my internal table(lt_tab) and then I have to process logic.
Problem is when user click on Custom button in ALV tool bar it is not having the changed values in lt_tab table.
Only when user clicks some thing on ALV grid records or fields then it is getting all the changed values in to lt_tab.
Can any one tell me how I can get changed values when user clicks on custom button?
1. Can we place custom button in ALV Grid? instead of ALV tool bar?
or
How I can capture user changes when they click on custom button?
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
TABLES
T_OUTTAB = lt_tab
Please check this logic-
CASE r_ucomm.
WHEN '&IC1'.
- It_tab having all changed field values
WHEN 'custom button'.
lt_tab - not having any changed values - showing all initial lt_tab values.
I highly appreciate your answers on this.
Thanks.
Rajesh.Hi,
Use this code, its working:-
*& Form ALV_DISPLAY
* SUB-ROUTINE ALV_DISPLAY IS USED TO SET THE PARAMETERS
* FOR THE FUNCTION MODULE REUSE_ALV_GRID_DISPLAY
* AND PASS THE INTERNAL TABLE EXISTING THE RECORDS TO BE
* DISPLAYED IN THE GRID FORMAT
FORM alv_display .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER = ' '
* I_BUFFER_ACTIVE = ' '
i_callback_program = v_rep_id " report id
i_callback_pf_status_set = 'PF' " for PF-STATUS
i_callback_user_command = 'USER_COMMAND' " for User-Command
* I_CALLBACK_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_END_OF_LIST = ' '
* I_STRUCTURE_NAME =
* I_BACKGROUND_ID = ' '
* I_GRID_TITLE =
* I_GRID_SETTINGS =
is_layout = wa_layout " for layout
it_fieldcat = it_field " field catalog
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS =
it_sort = it_sort " sort info
* IT_FILTER =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
i_save = 'A'
is_variant = wa_variant " variant name
* IT_EVENTS =
* IT_EVENT_EXIT =
* IS_PRINT =
* IS_REPREP_ID =
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* I_HTML_HEIGHT_TOP = 0
* I_HTML_HEIGHT_END = 0
* IT_ALV_GRAPHICS =
* IT_HYPERLINK =
* IT_ADD_FIELDCAT =
* IT_EXCEPT_QINFO =
* IR_SALV_FULLSCREEN_ADAPTER =
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = it_final " internal table
EXCEPTIONS
program_error = 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.
ENDFORM. " ALV_DISPLAY
*& Form USER_COMMAND
* SUB-ROUTINE USER_COMMAND IS USED TO HANDLE THE USER ACTION
* AND EXECUTE THE APPROPIATE CODE
* -->LV_OKCODE used to capture the function code
* of the user-defined push-buttons
* -->L_SELFIELD text
FORM user_command USING lv_okcode LIKE sy-ucomm l_selfield TYPE slis_selfield.
* assign the function code to variable v_okcode
lv_okcode = sy-ucomm.
* handle the code execution based on the function code encountered
CASE lv_okcode.
* when the function code is EXECUTE then process the selected records
WHEN 'EXECUTE'. "user-defined button
* to reflect the data changed into internal table
DATA : ref_grid TYPE REF TO cl_gui_alv_grid. "new
IF ref_grid IS INITIAL.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref_grid.
ENDIF.
IF NOT ref_grid IS INITIAL.
CALL METHOD ref_grid->check_changed_data.
ENDIF.
* refresh the ALV Grid output from internal table
l_selfield-refresh = c_check.
ENDCASE.
ENDFORM.
This will reflect all the changes in the internal table. Now you can include your logic as per your requirement.
Hope this solves your problem.
Thanks & Regards,
Tarun Gambhir -
User Exits to validate Fields in BP transaction
Hi,
Anyone Send me the User Exits To validate the Screen Fields of Transaction BP.
with Regards
kesavaperumalPlease Check Following BADI's.
BUPR_FILTER_RELSHP_2 Filtering or Hiding of Relationships Within the GUI
BUPA_ROLEGRP_HIDE Badi For Hiding Role Groups
BUPA_NUMBER_GROUP Badi for presetting the number grouping field
BUPA_INITIAL_SCREEN Initial Screen for BP creation
BUPR_ENQUEUE_TEST INTERNAL: Tests Whether BP is Locked
BUPR_RELSHP_OVR_EXT SAP BP: Extension of the Relationship Overview
Regards,
Swamy. -
User Exit for New Field Creation & Updation at Sales Order Level
Hi All,
I want to create one new field in Additional Data B Tab of Sales Order.
Also when the sales order is created with reference to a Contract, that Contract number to be updated in that field.
Which user exit need to be used for this field Creation & Updation at the time of order creation? Is it MV45AFZZ?
Pls suggest.
Rgds,
Senni.BHi
Additional header data is on screen SAPMV45A 0309, additional item data on screen SAPMV45A 0459. These screens contain the Include screens SAPMV45A 8309 or SAPMV45A 8459 as user exits.
Regards
Madhu -
User exit for (reference field) XBLNR check in ML81N
Hello,
We would like to implement a duplicate check on the reference field: XBLNR in ML81N. This would be to prevent users from posting duplicate service entry sheets.
Has anyone done it with SRV* user exits?
Thanks,
RichardHi,
Following are the list of user exits available for ML81N
SRVDET User screen on tab strip of service detail screen
SRVEDIT Service list control (maintenance/display)
SRVENTRY Unplanned part of entry sheet (obsolete since Rel. 3.1G)
SRVESI Data conversion entry sheet interface
SRVESKN Set account assignment in service line
SRVESLL Service line checks
SRVESSR Set entry sheet header data (This might be helpful)
SRVEUSCR User screen on entry sheet tabstrip
SRVKNTTP Setting the account assgnmt category when reading in, if "U"
SRVLIMIT Limit check
SRVMAIL1 Processing of mail before generation of sheet
SRVMSTLV Conversion of data during importing of standard service cat.
SRVPOWEB Purchase order for service entry in Web
SRVQUOT Service export/import for inquiry/quotations
SRVREL Changes to comm. structure for release of entry sheet
SRVSEL Service selection from non-SAP systems
SRV_FRM SRV: Formula calculation (obsolete since 4.0A!)
INTERFAC Interface for data transfer -
User exit to change Field labels( text) in VT01N
Dear all,
I have a requirement to change the Screen name of External ID1 ans External ID2 in identification tab to Seal and Trail. Is ther a user-exit to do this.
useful answers will be rewarded
Thanks
JHi
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).
Execute the report, give the transaction you want to find user exit, and query( press f8 ).
If no appropriate exit is available you can go for badi's.
To search for a badi, go to se 24 display <b>class cl_exithandler.</b>
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 <b>exit_name.</b> It would show the available badi's.
Hope this helps
<b>if it helped, you can acknowledge the same by rewarding</b>
Regards
Dinesh -
Regarding User Exit for SD Field Catalog
Hi All,
I need to insert a field called "Transportation Zone" in the field catalog.
Path: sproF5sales and DistBasic FunctionsPricing-Pricing ControlMaintain Condition Tables..
Now using CMOD Tcode, how to locate the appropriate Exit for this issue...???
Regards
PAvanHi Pavan,
You can see these user exits in SE38
To create a new field in the field catalog, the field needs to be put in field catalog with a Z name, say ZZ_TRZONE
Now you have to make changes in these 2 user exits to populate the transportation zone which is coming from masterdata into sales order , into the structure TKOMP ...etc which are populated during pricing. If you achieve that, then the condition records will be updated.
Please let me know if you need further information on this.
Rwd point if it helps.
BTW, These userexits are used only if the field which you want to include in the condition table is not in the list of allowed fields in the field catalog or not in structures KOMG, KOMP, KOMK. If the field is already there in field catalog and in all these structures, then there is no need for user exit. You just need to create the condition table.
Message was edited by:
iimnava
Maybe you are looking for
-
In system preferences > sound > output, it will switch from normal internal speakers > built-in, to headphones > built-in, to digital out > built-in, to headphones > headphone port, to digital out > headphone port- it's nuts! This is all without havi
-
Win 7 or 8 with a new W530?
Hidy ho. I realize that no one can make this decision for me, but I'd greatly appreciate input from users savvier than I. I've been running Win XP on an old Dell these last seven years, and it's time for a new laptop. Am on the Lenovo site now, custo
-
Best practice with otr texts in wd
hi, when I enhance a wd component I want to work with otr texts and I have two questions: 1. Is the best way to store the otr texts in a separate new package or in the still existing package of the enhanced wd component? 2. Makes it sense to fetch ev
-
PC Suite does not sync contacts
I am trying to use Nokia PC Suite to download one of my colleagues contacts from his Nokia and save them as CSV's so I can import to Outlook. Simple enough procedure no? No... it only displays 1 contact when it synchronises. When I sync it, the phone
-
My image counter goes up to 9/8... It has only 8 pictures. I got it starting at 1/8 up to 9/8 back to 1/8. What's wrong? Thanks for help import fl.containers.UILoader; //Declaring Variables var menu:MovieClip = menuMc; // var prevBtn:MovieClip = menu