Customized entries for ACTVT field
Dear Gurus,
I have created customized Authorization object with the help of post on forum but I am unable to figure out to create customized entries for ACTVT.
Eg: Instead of activity 01, 02, 03 ....ect I want to create Z1, Z2 & Z3.
How can I create this entries ? what are the steps involved and how to I assign it to my customized Auth object ?
Thanks in advance,
Soyunee
The original requirement from functional consultant is to create a customised Authorization with 2 fields 1. Company code 2. Activity.
And the second requirement is to add activity entries Z1 - Extract invoice & Z2 - Approve invoice.
Since you mentioned you are creating a custom authorization object, I believe the auth check would be made by a customized program or a BADI too.
If my assumption is correct, you don't need to create custom field values for SAP standard field ACTVT, rather you can have the custom program logic designed in such a way that it triggers desired action while checking the already existing SAP delivered field values for ACTVT.
For instance:
Logic is designed so that a value ACTVT= 01 would trigger action Extract Invoice and ACTVT= 02 would trigger action Approve Invoice
To summarize, you can use any standard field values for ACTVT and have desired action defined for that value in your program logic. I have come across such scenerios in the past and quite sure this concept works!
Try it out:)
P.S: While creating the custom object, it would be a good idea to document the relevant action that your custom program will trigger for each of the standard values for field ACTVT ( which you are going to use) in the object documentation section of tcode SU21 for future reference.
Thanks,
Sandipan
Similar Messages
-
Custom F4 for a field in ALV GRID
I am want to provide a custom f4 fro a field in alv gird
similiar to the functionality of process on value request
on a normal screenHi Kaushik
You can find some information at page 37 of the document:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/an easy reference for alv grid control.pdf
*--Serdar -
Customer exits for currency field in generic extractor
Hi,
I had a requirement to create a generic extractor. I've created a generic extractor by name 'ZXXZ_XXX_TAX_ATTR'. This extractor was created based on a table T007V in turn view. It has a currency and a quantity type field. Those two fields were not refering to a table fields but were refering a structure. So as per the note 335342, if we have fields of curr/quan type and are having reference fields as a structure field, we need to populate those fields throught a customer exit.
As I have read that the same problem has been solved by you with customer exit. So can you mail me the exit code as I am not a good in ABAP.
Regards,
Amol GaurkarHi Amol,
Here is the code below,
TYPES: BEGIN OF TY_T007V,
TRKORR TYPE TRKORR,
ALAND TYPE ALAND,
MWSKZ TYPE MWSKZ,
TXJCD TYPE TXJCD,
DATAM TYPE DATAM,
KSCHL TYPE KSCHL,
KBETR TYPE KBETR,
END OF TY_T007V.
DATA: T_T007V TYPE STANDARD TABLE OF TY_T007V,
T_EXTRSTRU TYPE STANDARD TABLE OF <b><Extract Structure></b>,
**-- Work Area
W_T007V TYPE TY_T007V,
L_TABIX TYPE SY-TABIX.
CASE I_DATASOURCE.
WHEN 'ZXXZ_XXX_TAX_ATTR'.
REFRESH: T_T007V.
CLEAR: W_T007V,
L_TABIX.
T_EXTRSTRU[] = C_T_DATA[].
IF NOT T_EXTRSTRU IS INITIAL.
Fetching all the records into internal table T_T007V from the transparent table T007V
SELECT TRKORR
ALAND
MWSKZ
TXJCD
DATAM
KSCHL
KBETR
INTO TABLE T_T007V
FROM T007V
FOR ALL ENTRIES IN T_EXTRSTRU
WHERE TRKORR = T_EXTRSTRU-KOKRS
AND ALAND = T_EXTRSTRU-ALAND
AND MWSKZ = T_EXTRSTRU-MWSKZ
AND TXJCD = T_EXTRSTRU-TXJCD
AND DATAM = T_EXTRSTRU-DATAM
AND KSCHL = T_EXTRSTRU-KSCHL.
IF NOT T_T007V IS INITIAL.
SORT T_T007V BY TRKORR ALAND MWSKZ TXJCD DATAM KSCHL.
LOOP AT T_EXTRSTRU INTO W_EXTRSTRU.
L_TABIX = SY-TABIX.
READ TABLE T_T007V INTO W_T007V
WITH KEY TRKORR = T_EXTRSTRU-KOKRS
ALAND = T_EXTRSTRU-ALAND
MWSKZ = T_EXTRSTRU-MWSKZ
TXJCD = T_EXTRSTRU-TXJCD
DATAM = T_EXTRSTRU-DATAM
KSCHL = T_EXTRSTRU-KSCHL
BINARY SEARCH.
IF SY-SUBRC = 0.
W_EXTRSTRU-KBETR = W_T007V-KBETR.
MODIFY T_EXTRSTRU FROM W_EXTRSTRU INDEX L_TABIX.
CLEAR W_EXTRSTRU.
ENDIF.
CLEAR: W_T007V,
L_TABIX,
W_EXTRSTRU.
ENDLOOP.
ENDIF.
REFRESH C_T_DATA.
C_T_DATA[] = T_EXTRSTRU[].
REFRESH: T_T007V,
T_EXTRSTRU.
ENDIF.
ENDCASE. "ENDCASE FOR RETREVING THE EXTRACTOR
<b>Reward points if this helps,</b>
Kiran -
Multiple Entries for a field in Table
Hi All,
I needed to add field to a ztable, the options should include values from table LIKP-LFART and should allow for multiple entries.
I tried adding field with table type and structure type but error saying table type or sturcture cannot be used for table. Please let me know is there any other way how i can include multiple entries.
Thanks,Thanks Sandra and Advait. I have done exactly as advised by sandra, i have added check table as Advait suggest. Also, to test this for multiple entries how can i do this. or shouls i raise this in a new thread.
Thanks Again. -
How to delete a Firefox suggested entry for a field
When I'm entering data into a field (eg a userid) Firefox suggests (from previous entries I've made ) what I might wish to select and save typing. How o i delete one of those suggestions so that it is not made again?
''nmcuk [[#question-1048221|said]]''
<blockquote>
When I'm entering data into a field (eg a userid) Firefox suggests (from previous entries I've made ) what I might wish to select and save typing. How o i delete one of those suggestions so that it is not made again?
</blockquote> -
Hi All,
could u help on , How to give the list of possible entries for the field in the selection screen.( not a F4 help) customizing entries.
Thanks,
kumarHi,
You can populate range in your program
with all the restricted entries required and
then in your select query you can use IN
that range syntax.
Hope it helps
Regards
Mansi -
F4 help for a field in UI(CRM 5.1)
Hi All
Can anybody tell me how to do F4 help for a field in UI( CRM 5.1). scenario is given below.
I have 2 customer fields added to UI using EEW and have custom table for maintaining field values. need to add F4 help for field1 ( field1 and field2 values needs to be displayed in F4 help list) and field2 should get value when we hit the particular entry from field1 F4 help list.
thanks in advance.Hi,
You can implement the Get_V* method for the field1 attribute and use the following code to populate both field1 and field2 as output paramters for your F4 help.
DATA:
ls_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
lt_inmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
ls_map-context_attr = '<STRUCT.field1>'.
ls_map-f4_attr = 'field1'.
APPEND ls_map TO lt_outmap.
ls_map-context_attr = '<STRUCT.field2>'.
ls_map-f4_attr = 'field2'.
APPEND ls_map TO lt_outmap.
<fill the lt_inmap (input parameters) as per your requirement>
CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr
EXPORTING
iv_help_id = '<your search help id>'
iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
iv_input_mapping = lt_inmap
iv_output_mapping = lt_outmap.
Note: In your DDIC search help, define field1 and field2 as output parameters in SE11.
Reward if it works!
Thanks,
Sudipta. -
Using Field Exit for a field in table KNA1
Hi everyone,
I am working on a ticket, the problem is we have a field called STRAS in table KNA1 which holds the address of the customer but now we want to increase the length of this field from 35 charachters to 55 due to some business requirement. SO my question is if this can be done using Field Exit and if yes.. can you please tell me how as I have never used Field exits.
Thanks,
RajeevHi,
Using field exit, you can only validate the data entry for the field (either globally or on a particular screen field)
This is usually done by implementing the field exit for the data element corresponding to the field(in your case STRAS_GP)
Hence you cannot increase the length of the field using the concept of the field exits...
Please note that after SAP R/3 4.6c, SAP has stopped the creation of field exits and there will be no support for any new ones created.
Regards
Shiva -
Check for mandatory fields while creating EP users using code .. :|
Hello All,
I have a code using which I can create user accounts/EP users on Portal, am working on EP6 SP9 & SP12.
<u>My query</u>:
1. <i>From Portal's perspective</i> -> While creating EP users, there are few mandatory fields like user-id, FirstName, LastName, Email-id and Password. If any of the above fields is null/empty, Portal would give us an error message.
2. <i>From coding perspective</i> -> Here, only the user-id is required. Even if I do not enter/fill any of the above mentioned mandatory fields (except user-id), user account is created.
In case wherein FirstName/LastName is not mentioned, Portal shows the userid in the Welcome Frame, i.e. Welcome <user-id>. Tried this by commenting the statements contains the methods related to setting/accepting FirstNme and LastName of user.
<b>I want to know if this is all rite?
If no, then please guide me as to how can I set mandatory fields in my code.</b>
Awaiting Reply.
Thanks and Warm Regards,
Ritu R HunjanHi Ritu,
>>please guide me as to how can I set mandatory fields in my code??
In ur jsp file or in the controls code add the following attribute
<hbj:label id="userIdLabel"
text="User ID"
labelFor="userIdInput"
design="HEADER3"
required="true"/>
and to check the mandatory entry for that field do this in the submit button
<hbj:button id="insert"
text="Submit"
design="emphasized"
onClick="save"
onClientClick="if(!isMandatory()) htmlbevent.cancelSubmit=true;;"/>
and in the javascript write the client validation code.
Hope this helps.
Regards,
Joshua Kiran -
Drop down in the selection for the field from the table
Hi.
i want to put the drop down for the field from the table fo which i dont know the number of entries for the field zregion1 of the table zbwcntry.
please tell me how to use the function module and what could be the line of codes.
the drop down is for the select option on the slection screen of the classical report.
please help .HI,
Check below code..it may help you.
REPORT Zbunu .
TYPES :BEGIN OF STR ,
MATNR TYPE MATNR ,
END OF STR .
DATA : ITAB TYPE TABLE OF STR WITH HEADER LINE,
VAR TYPE MARA-MATNR .
PARAMETERS : S_MATNR TYPE MATNR ,
P_MATNR TYPE MATNR.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_MATNR .
SELECT MATNR FROM MARA INTO
CORRESPONDING FIELDS OF TABLE ITAB UP TO 1000 ROWS.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'MATNR'
PVALKEY = ' '
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNNR
DYNPROFIELD = 'S_MATNR'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = 'X'
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
tables
value_tab = ITAB
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards
Ansumesh -
List of characters not supported for a field search of type char
Hi,
I have a field of type char.
When we create entries for that field in a table we use special characters like &, etc. When searched it is not supported and not displayed in results.
I suppose it might be because SAP can support for characters of specific ASCII codes.
If you have any list of the ASCII codes supported in search, kindly let me know.
Thanks and Regards,
JaisishHi Jaisish,
as far as I know, there are two "special" characters that act as jokers in a field search
+: standing for one character
*: standing for zero or more characters
You can search for these characters into the content of a field, if you "escape" them. The symbol for escaping is "#" (before the special character + or *).
For example, if you search for "#*", this will search all entries with an asterisk in its content.
I hope this helps. Kind regards,
Alvaro -
TO ADD A CUSTOM ENTRY IN RIGHT CLICK POP UP MENU IN ORACLE HRMS FLEX FIELDS
We are building a custom help for Oracle HRMS. For this I need to add a custom Help entry in the right click pop up menu. I did this by adding the code APP_POPUP.INSTANTIATE('POPUP10','Custom Help',TRUE,'LINE') in the APPCORE lib. After this change the right click menu shows the new entry 'Custom Help' when user right clicks in any of the form but the new entry Custom Help' doesn't show up when I right click in flexfields. I am sure I need to do some thing else for flex fields.. Does any one have any idea on this ?
You have to refer to the Current Form, Current Block , Current Item so that the menu appears only in the form where you want to see.
-
Possibele entries are not populating for the fields on the selection screen
Hi,
Possible entries are not populating for the fields on the selection screen for the query.But its working fine in Development and Quality Systems.
Can any body help me out
Regards,
Amit.Hi,
In the Selection screen,go to Settings->Value Restrictions tab->Read Mode Settings->Custom radio button and select the options Values in Master Data or Only Values in InfoProv or Only Posted values for navigation.
After this setting,check whether you are getting the data or not.
Rgds,
Murali -
Possible entries for selection screen field
Hi,
I have created a custom DDIC table Z_TAB which contains 3 fields of type char. The table contains about 100 rows of data. I want that at the selection screen, for each selection field a list of entries in the table should appear. E.g. Data rows:
Field1 Field2 Field3
aaaaa bbbbb ccccc
bbbbb bbbbb ccccc
ccccc bbbbb ccccc
(contd.) (contd.) (contd.)
Now at the selection screen:
Field1 _________
Field2 _________
Field3 _________
It is required that at selection screen:
Field1 should give the option of entries: aaaaa, bbbbb, ccccc, ...
Field2 should give the option of entries: bbbbb, ...
Field3 should give the option of entries: ccccc, ...
and so on, like for the standard DDIC tables.
How can this be achieved? Help is appreciated.
RegardsHi,
AT selection-screen output even you read the records of the table into internal table and then At selection-screen on value request event you
use function module F4IF_FIELD_INT_TABLE_VALUE_REQUEST
(dont exacty remember the FM sorry but will be of similar kind)
and populate value for that functional module for each field in the even
ON VALUE REQUEST FOR PARTICULAR field by reading that record from first to the FIRST FIELD and from second record to second Field and from Third to the THIRD FIELD..
Hope this would solve your problem
Regards
Narin Nandivada. -
PROBLEM TRANSFERRING MULTIPLE DATA ENTRIES FOR ONE KEY-FIELD.
DEAR EXPERTS ,
I HAVE TRANSFERRED DATA FROM THE FINAL INTERNAL TABLE OF MY ABAP REPORT (NOT ALV) TO CUSTOM Z-TABLE CREATED IN SE11.
BUT MY PROBLEM IS : I COULD NOT TRANSFER MULTIPLE DATA ENTRIES FOR A PARTICULAR FIELD.
FOR EXAMPLE : IN TABLE EKKO THERE ARE FOUR EBELN-4900006375 AND FOR THAT DIFFERENT EBELP S ARE
PRESENT. I COULD TRANSFER ONLY THE FIRST ENTRY , THAT IS : EBELN - 4900006375 AND EBELP - 0010,
AFTER THAT THE ZTABLE IS NOT GETTING UPDATED TO EBELN-4900006375 FOR EBELP - 0020 AND SO ON.
I HAVE TRIED ALL THE ' MODIFY, INSERT, UPDATE ' STATEMENTS. I HAVE USED AT - USERCOMMAND - HIDE AND CHECKBOXES.
PLEASE SUGGEST A SAMPLE CODE FOR THIS.
Moderator message: please post again, but not in all upper case.
[Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
Edited by: Thomas Zloch on Jun 19, 2011 10:05 PMThere are actually 5 queries in this report now. From what I understand about a union query, I don't think it will work here because the data being returned in each of the queries is so different. I basically need to know how to make all the criteria for each individual to be displayed before proceeding to the next data set, which will include the same data as the first, but for the next employee, and so on. I need to basically create a repeating frame with each individual's respective data I guess, but every time I do, it tells me that it's referencing an invalid group.
Maybe you are looking for
-
HT3455 HDCP Compatibility with MacBook Air?
I have a mid 2011 MacBook Air running OS X Lion 10.7.5 and the latest version of Itunes. I downloaded HD TV episodes of Breaking Bad Season 4 yesterday and cannot play them, I get a message that they can only be played on HDCP compatible devices. How
-
Acrobat not displaying correctly in Win7 1920x1080 screen
Been puzzling over why Acrobat 9.4.1 doesn't display correctly on my new Dell laptop (D6550), i7 cpu, 1920x1080 display, WIN7 64 bit. Strange part is that it appears that the window overflows the top and right side of the screen a little, and that t
-
Oracle 8i hase Time series for defining calendars and other functions. How does Oracle 10g/11g support Time series features. I could not find any information about Time Series in the 10g/11g documentation.
-
Impression photo sans bordures
Bonjour, je suis confronté à un pb d'impression que je ne parviens pas à résoudre: comment imprimer une photo sans borures? Que ce soit sous photoshop, ou adobe acrobat pro, je ne parviens pas à supprimer l'impression d'une bordure autour de la photo
-
Make large pdf starting from numbered pdf files
Hello, I have a weekly job I do In acrobat Pro but would like to do without acrobat. 1. I have a folder with pdf files numbered from 1 to ... For example 1.0041job1.pdf / 2.147job2.pdf / ... The number of pdf files changes every week depending severa