How to fetch screen field in HR abap
hi friend,
I need to fetch a screen field q0128-tdline. And the field should be included in payslip. Is there any user exit to proceed with this.Please reply ASAP.
Thanks and Regards
K.karthikeyan.
hi,
Use the user exit PBAS0001.
you need to write the code in include ZXPADU02 to get that field.
Similar Messages
-
How ti disable screen fields in Module pool
hi
How to change screen fields to DISPLAY MODE aftr clicking on a particular pushbutton in Module pool prg .
regards
chetan
Edited by: chetan teli on Jul 29, 2008 1:04 PMhiiii
use following code for disabling field
IF p_rad2 IS INITIAL .
LOOP AT SCREEN.
IF screen-name CS 'p_docno'.
screen-active = 0.
MODIFY SCREEN.
ENDIF. " IF screen-name CS 'p_docno'.
ENDLOOP. " LOOP AT SCREEN.
ELSE.
LOOP AT SCREEN .
IF screen-name CS 'p_docno'.
screen-active = 1.
screen-input = 1.
MODIFY SCREEN.
ENDIF. " IF screen-name CS 'p_docno'.
ENDLOOP. " LOOP AT SCREEN .
ENDIF. " IF p_rad2 IS INITIAL .
regards
twinkal -
How to make screen field enable when table control gives an error
Hi,
I had a scneario like when table control data wrong then one parameter of the screen should be enabled for the input, i knew that screen-name will not work since it will have always table control fields only when table control gives an error.
How to make the other parameter enable when table control throws an error.
Regards,
JayaHi Gobi,
Thanks for your response, but issue is - how to make other screen fields enable when there was an error in the table control data.
For table control - lets say we will use the code as i mentioned above.i am sure that we cant write the code for field enable in between loop & endloop.
as you said if we right outside the loop-endloop, the module wont be triggered when table control throws an error, because that statement was not there in the loop-endloop.
please let me know if you need any more information on the issue. I hope there is alternative for this in SAP.
Thanks
Jaya -
Fetch screen fields Line item wise
Hi All,
I have a requirement where i've to display some popup messages based on some conditions in MIGO transaction when POST button is clicked.
For that i have done certain changes in a BAdI IF_EX_MB_MIGO_BADI~POST_DOCUMENT .
But i require to read the screen field for G/L account ie GOITEM-KONTO of screen number 0345.
the G/L account can be accessed thru internal table IT_MSEG-SAKTO in the method, but the problem is the screen field has been left blank and when POST is clicked, by the time this BAdi is reached, the value is filled. And i need to add few codes only when the screen field has been left blank.
I found out FM - DYNP_VALUES_READ . But this reads only header screen data, so i'm unable to retrieve the line item wise G/L account screen values.
Please help.
Thanks,
AteetHi Petr,
I dont think u read the question properly.
The problem is the screen field has been left blank and when POST is clicked, by the time that BAdi is reached, the value is filled. And requirement is to execute some part of code only when the screen field for G/L account is left blank/not blank. I want screen field value , not the value which is in IT_MSEG.
While giving inputs in MIGO screen it is blank but by the time it reaches the BAdI where i've written the code its getting filled. I want the values from screen just before it gets filled.
I was hoping to find some FM like DYNP_VALUES_READ which fetches screen elements line item wise too.
I think i will have to try n search a different BAdI where i can get the screen values b4 updation.
Regards,
Ateet -
How to change screen field value.
Hi Experts,
I like to change the screen field MSAUS(check box) of program SAPLIQS0 in one of the exit.But if I use
(SAPLIQS0)VIQMEL-MSAUS = 'X'. its showing compile error.Please tell me how can i change this field in this exit.
Regards,
Ajish.try something like this:
create field symbol
FIELD-SYMBOLS: <fs>.
Assign value of variable from calling prog to field symbol
ASSIGN ('(SAPLIQS0)VIQMEL-MSAUS' ) TO <fs>.
<fs> = 'X'.
Regards,
ravi -
How to access screen field value in a module pool programming?
Hi Experts,
I have create a module pool program SAPMYDLG. It contains two screens 100 and 200.
The first screen contains Employee_ID field. This field is not a dictionary field.
In the second screen 200, I want to access the value of Employee_ID field from first screen.
For this I created a global variable v_empid in TOP include.
Then in the PAI of the screen 100 I have assigned the screen field value to global variable.
v_empid = Employee_ID.
But this gives an error saying " Field Employee_ID not defined".
What am I doing wrong? How can I access the screen field value?
Thanks
GopalHi,
Employee_ID field also must u define in the top include when u define that 100 screen and 200 screen will access.
regards,
muralii -
How to fetch bank fields in fbl1n
plz tell me the process how to fetch bank details of particular vendor in fbl1n.
Moderator message: welcome to SCN, always search for available information before posting, show what you have done yourself when posting.
Edited by: Thomas Zloch on Jan 19, 2012how to fetch two different field records of two different tables in a single row?
i need to display in a single column
I'm going to assume that you mean the second one.
without using union query?
Can't as far as I know.
if i use union query i have to give equal both right and left columns
I don't actually know what you mean by this and I'm not going to guess.
I reckon Sarma's answer (although it does use union even tho you specified that you don't want to use it) is what you need. If it is NOT what you need, please reply with the specifics of your requirement. i.e. post create table statments and insert statements that will build a valid test case. Also post what results you expect along with what you have tried (the code not a description) -
How to fetch all fields with RFC_READ_TABLE ?
I can use RFC_READ_TABLE to fetch specified fields with the TABLE parameter "FIELDS". If I want to fetch all fields of the table, I must specified each field name. However, I can not use "*" in FIELDS, and I can not left the table empty (Error will be generated). Is there other method to fetch all fields ?
language: VB.NET
tblT = New TAB512Table
tblTField = New RFC_DB_FLDTable
tblTOption = New RFC_DB_OPTTable
Dim stuTFieldRow As New RFC_DB_FLD
Dim stuTOptionRow As New RFC_DB_OPT
Sapproxy.Rfc_Read_Table("", "", strTN, 0, 0, tblT, tblTField, tblTOption)Hi:
Do like this
CALL FUNCTION 'RFC_READ_TABLE'
EXPORTING
query_table = Table
delimiter = ''
no_data = ''
rowskips = 0
rowcount = 0
TABLES
options = i_options
fields = i_fields
data = t_data.
Regards
Shashi -
How to update screen fields dynamically
Hi,
Can any one help me in updating screen field dynamically using so_expr, so_where,so_fldsHi,
Use this type of logic. Though this code is for selection-screen, but you can use this type of logic for screens by using screen table and implement this logic in PAI.
REPORT z_sdn.
PARAMETERS:
p_num RADIOBUTTON GROUP rad1 DEFAULT 'X' USER-COMMAND abc,
p_char RADIOBUTTON GROUP rad1.
PARAMETERS:
p_num1 TYPE i MODIF ID num,
p_num2 TYPE i MODIF ID num,
p_char1 TYPE c MODIF ID chr,
p_char2 TYPE c MODIF ID chr.
AT SELECTION-SCREEN OUTPUT.
IF p_num EQ 'X'.
LOOP AT SCREEN.
IF screen-group1 EQ 'CHR'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF screen-group1 EQ 'NUM'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
Regards
Abhijeet -
How to get the field texts from abap dictionary into screen Text fields
Hi SapAll.
here i have got to modify one zscreen by adding 1 more field,when i added one field in teh screen by just writng the code in program as SELECT-OPTIONS ilart FOR CAUFVD-ILART.
but iam unable to get the field text for the text field from teh table CAUFVD.
CAN ANY BODY HELP ME IN THIS.
regards.
varmaHi Varma,
Even if you want to personalise the Text also you can do without checking the DICTREF checkbox. Dirctly you can give the text in the Text elements by using the Menu GOTO -> Text Elemetns -> Selection Texts.
Regards
Thiru -
How to hide a field in WD ABAP in SAP LSO for privacy reasons?
Hi all,
For my current project, the business wants to implement SAP LSO (Learning).
They would like to have some small changes in the WebDynpro for ABAP iview "pcd:portal_content/com.sap.pct/specialist/com.sap.pct.erp.instructor.bp_folder/com.sap.pct.erp.instructor.iviews/com.sap.pct.erp.instructor.course_details".
For privacy reasons they want to make the field "Address of the participant" invisible via CTRL-rightmouse Click in Admin mode.
Various fields are done in the first screen, but when you click on the link "Participant XYZ", you get additional information of it.
I am not seeing any fields in Admin mode on that level. How can I make this happen for all users?
FYI: I can't find the "Address" field in the Element structure UI.
We can disable the link to the participant, but that's not what the business wants. Hopefully someone has the solution (without WD-developement actions please..)
Kind regards,
G. LeursHello,
What you can do is the following:
Start the application in a 'normal' way, so not in the preview mode. Select the course, and copy/paste the url that is generated in notepad. Please note the following string:
ASSIGNED_AS=Docent&OBJID=50000716&OTYPE=E&PLVAR=01 (Values will differ on your system).
These are the input parameters of the WD Abap that gets called, which is lso_mc_admn_course_dtls. (The iView that gets called is pcd:portal_content/com.sap.pct/specialist/com.sap.pct.erp.instructor.bp_folder/com.sap.pct.erp.instructor.iviews/com.sap.pct.erp.instructor.course_details).
Start the Web Dynpro ABAP (you can do this through the backend with transaction SE80, choose Comp/Intf Web Dynpro, enter LSO_MC_ADMN_COURSE_DTLS for the Web Dynpro ABAP, then click open the Web Dynpro Applications bit, double click on lso_mc_admn_course_dtls. Then, from the top menu, select Web Dynpro Application --> Test --> Execute in Administration mode.
Now add the string that has something like ASSIGNED_AS right until PLVAR=## (the string I pasted up here in this answer). You're now in admin mode with the correct parameters, and you can change the app. Don't forget to transport the changes you made!
Gr,
Jaron Frenk -
Enable screen field in WebDynpro ABAP
i,
I have WebDynpro ABAP screen where I have defined a read-only input field. Now I want to make this field input enable based on certain logic during run time.
CALL METHOD lo_el->set_attribute_property
EXPORTING
attribute_name = 'SP'
property = lo_el->e_property-read_only
value = ''.
I have written following code in method "WDDOMODIFYVIEW",
but somehow this is not working. Any Idea what is going wrong.
Regards,,,
Sunil JoyousManas,
You said,
You need to bind the read only poperty of input field with an attribute of type WDY_BOOLEAN, then based on your logic you can set the bound attribute to true or false in any method.
how do I do this ? Now I have done following
DATA : lv_wdy_boolean TYPE wdy_boolean.
lv_wdy_boolean = ''.
CALL METHOD lo_el->set_attribute_property
EXPORTING
attribute_name = 'SP'
property = lo_el_credit_note->e_property-read_only
value = lv_wdy_boolean.
but still it is not working. -
How to fetch this field for my report?
Hi.,
In my system I am having one zprogram, where..,
If we enter F1 and F2 in the first screen we can present with second screen where we can have details...
In that details we are having F3 field(Say).
So this is not standard program. and for first screen we are having T'Code as TT1(Say).
And the most important thing here we have to note is F3 is not fetching from any database or tables...
So Here they are developed one code to generate that. Later they are not saving it in any data base or custom table..!
So Now my reuirement is..,
Here I want to develop one report with some columns(Fields) where it contains above F3.
Now,
I am having F1 and F2 with me.,
So how can I get F3 Value?
Do i need to use same logic behind the above program?
Or,
Can I call that second screen by inputting first screen inputs i.e F1 and F2?
If soo, How can read F3 from second screen?
Thanks for your attention.
Let me know if you want any further information.
--Naveen Inuganti.In your report ,u can use the same logic code to calculate F3 ,dat they have used in the program.
If you feel value of F3 is needed in lots of places in your project,then u can develop a FM to calculte F3 inpuuting F1 and F2..and use the FM where evr u want... -
How to access screen field in pai event
Hi All,
I have created a custom screen it has the field say matnr selected from the dictionay.NOw how will I should access this field in PAI event module?
Thanks in advance
Maheshjust declare the same variable in your abap editor as per your layout field name.
suppose in your layout input field name is matnr just declare
data : matnr like mara-matnr.
in pai module if you are using matnr it will give you the screen data.
like
module pai input.
if matnr ne '1000'.
message 'Error matnr is not 1000' type 'E'.
endif.
endmodule.
reagards
shiba dutta -
How to set screen field in ME_PROCESS_PO_CUST?
Dear all,
I need to set this field 'MEPO1317-MWSKZ' to display only by some criteria. I want to know HOW to do it in ME_PROCESS_PO_CUST
Thanks for your kindly helpful.Hi Esaki,
1) Define new field selection in configuration "Define screen layout at Document level"
2) write code in fieldselection_item_refkeys as follow
get item data
if your condition
ch_key0 = new field selection
endif
Hope it can help u.
Grace
Maybe you are looking for
-
Hi, I am using Windows 8.1 I have an External Hard Disk i have partitioned it to 4 parts. One drive is now inaccessible due to sudden power failure while listening Music from that drive few days ago. Now it shows "Data error (Cyclic redundancy check)
-
Service entry short text needs to default in MIGO item text
Dear SAP Gurus, How service entry short text can be default in MIGO item text, currently system is defaulting service text in Text filed in MIGO(MSEG - SGTXT ) can any body let us know. Thanks in advance Vinod Edited by: Vinod Malagi on May 25, 2009
-
Using tnsnames.ora file instead of oracle names server
hi, sqlnet.ora file contains NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES) NAMES.DEFAULT_DOMAIN = (domain name) SQLNET.EXPIRE_TIME = 2 DEFAULT_SDU_SIZE = 8761 NAMES.PREFERRED_SERVERS = (ADDRESS_LIST = (ADDRESS = (COMMUNITY = TCP.world) (PROTOCOL = TCP) (H
-
Keeps asking to "review billing information"
Hello, I've searched for this error and I have tried the solutions I have found so far with no luck. I'm trying to order an iphoto card from iphoto 9. It keeps asking me to update my account information and review my billing information. (like many o
-
Search help for filename+path
Hello, When i need to get a file name and its path , i use the f.m. "WS_FILENAME_GET" that popup an explorer window. I'm looking for a search help that do the same, so i can link it to a data element . Thank you, koby