No user input for the field on which i need to write customer exit code.
Hello everyone,
Scenario:
There are differrent lease type and there Start date and expiry date.
each lease has to return somoe returns on some basis.
selection screen has four options but none of them is date.
My understanding:
I need to get only those leases in my report whose expiry date is greater than system date/current calendar day.
I am not selecting any date field in selection screen, so i need to get value of expiry date from cube, and than compare it to current date.
So i need to write a customer exit in which i need to read date and restrict data on this expiry date.
Requirment:
Need a code for SAP exit variable which will meet the following requirment
There are the following 4 variables in the query.
1) material
2) product hierarchy
3) City
4) lease type
I need a customer Exit variable (CMOD) that will
filter the records on the basis of condition-"lease expiry date is greater than current system" and display all the records whose expiry date is greate than Sy Date (Current Date) and also if expiry date is blank.
kindly give me information on how i can write this code asap; and let me know if need more information.
Thanks
I am Getting the same error for both the codes that i have written...
Do i Need to write sth else in the code...
Code:
WHEN 'ZVLIVELEASES'.
IF I_STEP = 2.
L_DATE = SY-DATUM.
SELECT * FROM "DSO_ACTIVE_TABLE"
INTO TABLE ITAB_LL where "EXPIRY_DATE" > L_DATE.
LOOP AT ITAB_LL INTO WA_LL.
CLEAR l_s_range.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
l_s_range-low = WA_LL-"EXPIRY_DATE".
APPEND L_S_RANGE TO E_T_RANGE.
ENDLOOP.
ENDIF.
Error: Error for variable in customer enhancement ZLIVELEASES
Similar Messages
-
How to write customer exit code to get current user as default in variable
Hi guys,
I design a query which has a variable called var_employee , I also set some default values for this variable in query designer. But I would like to set the current user account who logon on (who execute the query) in the dropdownlist as default user when the variable selection screen appear. of course after that he can choose other avaiable value.
I look up some related threads, all says that this need some customer exit code, and they mention to use CMOD to create the customer exit , but I don't know the detail process, as I am pretty new on this.
The attribute of the var_employee variable is : employee(defined info object by myself) characterstic value, customer exit.
Can somebody show me the process to create the customer exit, and the apap code in detail if possbile. then I can try.
Thanks a lot in advance.
Best Regards,
BenHi,
Please have a look at:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
Krzys -
How to force sql developer to prompt for user input for every execution ?
Hi Folks,
Environment: Oracle 11g (on Windows 7)
SQL Developer: *3.1.07*
I am executing a PL/SQL code off Sql Developer. The code uses substitution variables to prompt user for input. However,I am only prompted for the user input for the very first run of the code. For the subsequent executions, the code simply picks up the user input from the very first run. This behavior persists for all subsequent runs of the code.
I have executed the same piece of code from SQL*PLUS and the behavior seems normal (i.e. I am prompted for fresh input for every execution)
How can flush out the old user input so I can be prompted for new user input for every run of the code in sql developer?
Thanks in advance
rogers42Hi Rogers42,
1/try
undefine
undefine fred
select '&&fred' from dual;
[run this multiple times]
[prompts gere]
old:select '&&fred' from dual
new:select 'a' from dual
'A'
a
[prompts here]
old:select '&&fred' from dual
new:select 'b' from dual
'B'
b
2/try
exit (requires recent version of sql developer: tools->preferences->Database->worksheet->Re-initialize on script exit command)
select '&&fred' from dual;
exit
run this multiple times
[prompts here]
old:select '&&fred' from dual
new:select 'x' from dual
'X'
x
Commit
[prompts here]
old:select '&&fred' from dual
new:select 'y' from dual
'Y'
y
Commit
3/use &fred instead of &&fred
For background see
http://totierne.blogspot.co.uk/2010/04/substitution-and-bind-variables.html
-Turloch
SQLDeveloper team -
Table name for the field PROZT
Hi all ,
I need the tablename for the field prozt which is used as the Weighting Percentage
in the org.assizenmrnt infotype 0001.
Plz help me .
Thanks in Advance .
Arun.Hi,
In general every infotype will have corresponding Table like for Org Assignment infotype 0001, the table is PA0001.
Good luck
Om -
I've been trying to find a pdf of the user manual for the PXI-6723. I need to know the pinouts of the two connectors. The data sheet I have shows no pinout.
Arthur Galan
Senior Technician - Space Science and Engineering
Southwest Research Institute
Div 15 / Bldg 178
6220 Culebra Road
San Antonio, Texas 78228
Tel: (210) 522-5713
Fax: (210) 520-9935Thanks Alan,
But maybe I'm missing something. The 6723 has two connectors on it. The pinout on the spec sheet shows only one. That's why I thought I was missing the pinout of the 2nd connector. I'll go back and take a look at that again.
Best Regards,
Arthur Galan, CID
Senior Technician - Space Science and Engineering
Southwest Research Institute
Div 15 / Bldg 178
6220 Culebra Road
San Antonio, Texas 78228
Tel: (210) 522-5713
Fax: (210) 520-9935 -
Customer exit code to populate fiscal period for prior three months
Dear frns,
I need an ABAP customer exit code to populate prior three month's fiscal period.
Please update on this...thanks
Cheers! ShanaHi
Here is the code that will satisfies ur condition.
CASE I_VNAM.
IF I_STEP = 2.
WHEN 'ZVAR1'.
DATA DATE1 TYPE D.
DATA PERIOD1 TYPE N.
DATE1 = SY-DATUM.
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'.
exporting
l_date = date1
l_periv = 'v3'
importing
E_BUPER = PERIOD2
E_GJAHR = YEAR2.
DATA PER3 TYPE N.
PER3 = PERIOD2 + 1.
CONCATENATE YEAR2 PERIOD2 INTO FPERLOW.
DATA LDATE TYPE D.
LDATE = SY-DATUM + 365.
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'.
exporting
l_date = LDATE
l_periv = 'v3'
importing
E_BUPER = PERIOD2
E_GJAHR = YEAR2.
CONCATENATE YEAR2 PERIOD2 INTO FPERHIGH.
DATA WA1 LIKE LINE OF E_T_RANGE.
WA1-LOW = FPERLOW.
WA1-HIGH = FPERHIGH.
WA1-SIGN = 'I'.
WA1-OPT = 'BT'.
APPEND WA1 TO E_T_RANGE.
ENDIF.
Hope u gotit,
Regard,
RaviChandra -
For abap-hr i need datatype and length for the fields which i selected
hi seniors,
I got one task for which i have to get the data type and length for the fields of a table in abap-hr. I am using dd03l table, but my team leader told me to not to use this. So, please anybody can help, i will be thankfull.
I have to select PA30 fields in which pernr and choic, subty and whatever i have selected the infotypes fields. If there is any function module to find data type and length or else any other table.
thanks,
sekhar.Hi,
Try using the Function Module "DDIF_FIELDINFO_GET". You can use this for fetching the complete details of a structure or, a specific field.
Input:->
TABNAME PA0001
FIELDNAME PERNR
Output:->
Check the DFIES_TAB it will contain all the details you need for the specific field.
Sample--->
CALL FUNCTION 'DDIF_FIELDINFO_GET'
EXPORTING
TABNAME = 'PA0001'
* FIELDNAME = ' '
* LANGU = SY-LANGU
* LFIELDNAME = ' '
* ALL_TYPES = ' '
* GROUP_NAMES = ' '
* UCLEN =
* DO_NOT_WRITE = ' '
* IMPORTING
* X030L_WA =
* DDOBJTYPE =
* DFIES_WA =
* LINES_DESCR =
TABLES
DFIES_TAB = MY_DFIES_TAB
* FIXED_VALUES =
* EXCEPTIONS
* NOT_FOUND = 1
* INTERNAL_ERROR = 2
* OTHERS = 3.
Hope this was of some help.
Best regards,
Sagar. -
Activate input for a field depending on the input in another field
Hy gurus,
A have a report with select option.
In the select option I'd like to have the following:
I have a checkbox ,if it is flagged the input for another field should be made possible.
The problem is,to activate it right after I flag the checkbox (without having to press ENTER)
Do you have suggestions?
Thanks,ChristianHi Christian
It's the same, check my sample in the last my answer.
If you want to protect a SELECT-OPTION or more than one parameter it should use the group.
SELECT-OPTIONS: S1 FOR SY-DATUM MODIF ID AAA,
S2 FOR SY-UNAME MODIF ID BBB
PARAMETERS: p1 MODIF ID AAA,
p2 MODIF ID BBB.
PARAMETERS: p_ck AS CHECKBOX USER-COMMAND aaa.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF p_ck = 'X'.
IF screen-group1 = 'AAA'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ELSE.
IF screen-group1 = 'BBB'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
Max -
User presses F4 on the selection screen for the field ''Transport Request"
Dear ALL,
I want to build up a functionality in my report where if the user presses F4 on the selection screen for the field ''Transport Request", then it will display all the Transport Requests involving that particular User...
What I mean is the normal process that is provided by SAP on saving an object in a package & assigning it to TR...
How do we Achieve it ?Hi.
First we need to give the client after that client number related requestes display in second parameter F4 help for that purpose i used two function modules.First for read the client no dynamically after that pass the client number second function module.
then u can get all the request for that client.
DFIELD-FIELDNAME = 'P_MANDT'.
APPEND DFIELD.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = 'Y9EZ_TR_COPYCLIENT'
dynumb = SY-DYNNR
tables
dynpfields = DFIELD
READ TABLE DFIELD INDEX 1 ."WITH KEY DFIELD-FIELDVALUE = 'P_MANDT'.
V_MANDT = DFIELD-FIELDVALUE.
CALL FUNCTION 'TR_F4_REQUESTS'
EXPORTING
IV_USERNAME = SY-UNAME
IV_TRKORR_PATTERN =
IV_TRFUNCTIONS =
IV_TRSTATUS = 'RNDL'
IV_FROM_DATE =
IV_TO_DATE =
IV_CLIENT = V_MANDT
IV_PROJECT =
IV_TITLE =
IV_VIA_SELECTION_SCREEN = 'X'
IV_COMPLETE_REQUESTS = 'X'
IT_EXCLUDE_REQUESTS =
IMPORTING
EV_SELECTED_REQUEST = S_TRKORR-LOW.
ES_SELECTED_REQUEST =
'TR_F4_REQUESTS' This function module for request
Regards
muralii -
Which value should I send for the field "business partner type " in DTW
I need your help. I am trying to create a new business partner using DTW. Please let me know wich possible values should I send to DTW for the field "Business Partner Type" (this label appears on sap-bo when enteringa new BP).
The database field name is OCRD.cmpprivate, so I tried to find the related field in the input file and I found "CompanyPrivate" is this the corresponding field for the "business partner type"?
I have been trying with the following values but the DTW fails with the error "invalid item name in enum BoCardCompanyTypes":
tYES
tNO
cCompany
cPerson
I
C
cI
cC
Thank you for your help
Jorge ManzoPlease note: I use DTW Version 88.1.7; API Version 8.81.319
To set CmpPrivate (it is exactly BoCardCompanyTypes) use following:
cCompany - Card represent a company.
cPrivate - Card represent a private person.
To set CardType see Godon's replay.
A lot of info you can find in "SAP Business One SDK - Help Center" docs.
Thanks,
Grzegorz -
Which Master data Source is available for the field VBUK-GBSTK (Doc Status)
Hi
Which Master data Source (Attr) is available for the field VBUK-GBSTK (Document Status).
Please help me.
Thanks
Mannev.Hi
Thanks for your reply.
That is Transaction data source. I want master data source.
Thanks,
Mannev. -
Which Master data Source (Attr) is available for the field VBUK-GBSTK
Hi
Which Master data Source (Attr) is available for the field VBUK-GBSTK (Document Status).
Please help me.
Thanks
Mannev.Hi Mannev.
I don't think that you will find GBSTK in any master data source. It is however available in 2LIS_11_VASTH.
Hope it helps.
BR
Stefan -
HI all,
in the report selection screen i have one field for which F4 HELP doesnt exits, even in the table for that field F4 HELP is not there but the user requests me to get the F4 HELP for that field in the selection screen .
please help how to get F4 HELP for the field
thanks in advance.The following are the options for F4 help
Code:
PARAMETERS: p_ccgrp LIKE rkpln-ksgru. "Cost Center Group
*Input help for Cost Center Group
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_ccgrp.
TYPES: BEGIN OF ty_ccenter_group,
setname TYPE setnamenew,
descript TYPE settext,
END OF ty_ccenter_group.
DATA: it_ccenter_group TYPE TABLE OF ty_ccenter_group.
CLEAR it_ccenter_group.
SELECT a~setname
b~descript
INTO TABLE it_ccenter_group
FROM setheader AS a INNER JOIN
setheadert AS b ON
asubclass EQ bsubclass AND
asetname EQ bsetname
WHERE a~setclass EQ '0101' AND
b~langu EQ sy-langu.
CALL FUNCTION
'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
ret field = 'SETNAME'
dynpprog = v_repid
dynpnr = SY-DYNR
dynprofield = 'P_CCGRP'
value_org = 'S'
TABLES
value_tab = it_ccenter_group.
F4IF_FIELD_VALUE_REQUEST:
This FM is used to display value help or input from ABAP dictionary. We have to pass the name of the structure or table (TABNAME) along with the field name (FIELDNAME). The selection can be returned to the specified screen field if three
parameters DYNPNR, DYNPPROG, DYNPROFIELD are also specified or to a table if RETRN_TAB is specified.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
TABNAME = table/structure
FIELDNAME = 'field name'
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNR
DYNPROFIELD = 'screen field'
IMPORTING
RETURN_TAB = table of type DYNPREAD
Getting F4 help based on other field .
Suppose if there are 2 fields on selection screen user name and Purchasing Document and the case is getting values of Purchasing Document Number based on user name
Code:
TYPES: BEGIN OF ty_match_nast,
objky TYPE na_objkey,
END OF ty_match_nast.
Data: it_match_nast TYPE STANDARD TABLE OF ty_match_nast.
Data: it_dypr_val TYPE STANDARD TABLE OF dynpread.
DATA: wa_dypr_val TYPE dynpread.
DATA: it_return TYPE STANDARD TABLE OF ddshretval.
Case when only username value is entered.
SELECT objky
FROM nast
INTO TABLE it_match_nast
WHERE kappl = c_ef
AND kschl = c_neu
AND usnam = wa_dypr_val-fieldvalue.
ENDIF.
*Read User name on selection screen field value
CLEAR wa_dypr_val.
REFRESH it_dypr_val.
wa_dypr_val-fieldname = 'P_UNAME'. "User name
APPEND wa_dypr_val TO it_dypr_val.
*FM to get the value
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
translate_to_upper = 'X'
TABLES
dynpfields = it_dypr_val_h.
*Pass the values to f4 table
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = u2018OBJKY'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'P_EBELN'
value_org = 'P'
TABLES
value_tab = it_match_nast
return_tab = it_return. -
How to disable the user settings for the transparent container
Hi Experts,
I have an form designed using VC - model, which as a input field and button. When i compile and deploy every thing works fine. I get the form as the output.I am able to call this form in the portal and I am able to get the page.
Issue: When i right click on the fields in the form I get "User settings for the input field AA" and gives me an option to Hide the field. Which the users doesnot want.
I tried it on the VC runtime where i don't get the right click option.
So kindly help me out in resolving this issue.
Thanks
KetanHi Ketan,
If you have chosen the Rendering Client as WebDynpro HTML(by default it is set so) for the callable object, then you would invariably get the 'probelm' you're facing.
Instead you could set for the Object Definition -> Rendering Client as WebDnpro Flex in the Callable object (in Guided Procedures). Now you would not get that hide option.
But one simple question, why would the user want to right click on the field? Even if he hides the fields, he always has the option to make them visible again
Let me know if it's helpful
Regards,
Vani -
How to validate a user input for where clause?
I have a situation to validate a where clause which is input by the user.
Because the query will be run against huge tables and we need to notify the user if they input the clause is not valid.
I use the below query to try:
Select 'A' from blablabla where user_input_where_clause and 1=0;
however, it can not capture the error when the user input:
'name=123' while the right condition should be name='123'.
Can you pls advise ?In this particular case, Oracle will not even try to run the SQL statement because of the syntax error. IF the WHERE condition supplied does not make sense, Oracle will not execute the statement, so it does not matter if the query accesses huge tables.
SQL> Select 'A' from blablabla where 'name=123' and 1=0 ;
Select 'A' from blablabla where 'name=123' and 1=0
ERROR at line 1:
ORA-00920: invalid relational operator
SQL>IF you have a restriction as to what type/value can user specify for the where condition (asuming it would make sense to SQL engine), you would have to do it before submitting to the database.
Note, however, that user could specify any condition they like, having potentially damaging effects.
Maybe you are looking for
-
Error while migrating users using CSSImportExportUtility
Error while migrating users using CSSImportExportUtility I'm tring to export all user and group information from a Hyperion Shared Services 9.2.1 by using CSSExport.bat When there was only native directory in HSS, i can export these information succe
-
Footer window should be in Last Page
Hi to all.. I have a issue in printing a form.. I have to print the footer window only to the last page. i have tried all the possiblities like enabled the option 'Only after end of the main window' in the alternative of the footer and adde
-
Sort order of album ignoring track #
I am having a problem where track 9 of a specific 14 track album is listed between tracks 11 and 12 rather than between 8 and 10. I have removed and re-imported the folder at least 10 times. I have tried all of these things before re-importing: Renam
-
Lost images, ratings & edits in Lightroom 4.1
Hi all, On opening Lightroom 4.1 it appears to have reverted back to how it was a few months and so I lost all of the images I was working on. On reimporting them back into Lightroom, this was performed quickly as if perhaps they were remembered, how
-
PowerBook keeps freezing after sleep.
I have a 1Ghz PowerBook that often freeze when I try to wake it up from sleep. The screen goes dark and a box appears in the middle telling me that I need to hold down the power button for a few seconds and to restart, it's written in a few different