Additional field in infotype 0009 issue ( PBO and PAI )
Hi Guru,
I need your help please.
I have a additional field in IT0009 and when I want created a new infotype 0009, I fill all field but after ENTER or SAVE all field are save in the layout but not the additional field.
To save the additional field in the layout, I must fill it again and after the ENTER or SAVE the field is save in the layout.
I have checked in the debbugger, when I create a new infotype 0009 it goes to the PBO but after ENTER or SAVE it doesn't go to the PAI so I must do it again ( fill the additional field and ENTER or SAVE ) and then it goes to the PAI.
Thus I would like to know how I can make so that after the ENTER or SAVE the screen goes in PAI before the PBO and at the first time.
Thanks very much in advance.
Regards.
Hi Srini Vas, hi Pedro Guarita and thanks for your reply,
After more investigation, the probleme come from a check over country bank.
In fact, the screen of the infotype 0009 must be adpated following the country bank but to do this, the standard module pool (mp000900) check if the country bank have changed.
call method cl_hrpad00_iban=>process_iban_pai
changing
cs_bankdata = ls_bank_data_current
exceptions
error_iban = 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.
call method cl_hrpad00_iban=>get_bank_data_old
importing
bank_data_old = ls_bank_data_old.
if ls_bank_data_current-banks <> ls_bank_data_old-banks. "MELN1357200
bank country changed -> leave screen needs to be done
leave_screen = 'X'.
endif.
But when you create a new infotype 0009, the ls_bank_data_old-banks is always initial. So when module pool compared the ls_bank_data_old-banks with the ls_bank_data_current-banks, those are always different.
In conclusion, when you create a new infotype 0009 it is always mandatory to push ENTER before to fill any additional field because at each first time that the standard module pool go in the PAI, it make a leave screen.
Thanks in advance for all yours reply.
Similar Messages
-
Help with F4 search on additional field in Infotype 0045
Hi guys,
I have created an additional field in Infotype called 'Payee_Key' of type P0057-EMFSL. I have to create F4 help for that field. However when creating F4 help through foreign key it is showing all tha values for EMFSL in the table.
I want the F4 help to be like Payee Key field of Infotype 0057 , where only specific country values of EMFSL , depending on the employee number are shown. not all values.
Please help me out. Thanks.
Edited by: soumyajit DM on Dec 15, 2010 10:42 AMHi Zafar,
Here is the answer to your question:
1) Create a class say ZABC_F4 that implements the IF_BSP_WD_CUSTOM_F4_CALLBACK interface.
2) Create method RETRIEVE_CUSTOM_VALUES with below parameters in that class:
CT_RESULTS_TAB Changing Type SHSVALTAB
IR_CUSTOM_REF Importing Type Ref To OBJECT
IS_SEARCH_HELP Importing Type SHLP_DESCR
3) Write logic for DB select here and put it in below code:
select * from abc into LT.
data: ls_result LIKE LINE OF ct_results_tab.
LOOP AT lt ASSIGNING <fs>.
CLEAR ls_result.
ls_result-key = <fs_>-field.
ls_result-value = <fs_>-fieldtext.
APPEND ls_result TO ct_results_tab.
ENDLOOP.
4) Redefine the V-method for that attribute and put below code there:
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.attribute1'.
ls_map-f4_attr = 'aaa'.
APPEND ls_map TO lt_intmap.
ls_map-context_attr = 'STRUCT.attribute2'.
ls_map-f4_attr = 'bbb'.
APPEND ls_map TO lt_outmap.
CREATE OBJECT rv_valuehelp_descriptor TYPE
cl_bsp_wd_valuehelp_f4descr
EXPORTING
iv_help_id = '(ZABC_F4)'
iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
iv_input_mapping = lt_inmap
iv_output_mapping = lt_outmap.
5) Implement get P for value input, as you know.
Thats it.
Regards,
Bhushan -
How do you add additional fields in infotypes?i want to leave blank space
how do you add additional fields in infotypes?i want to leave blank space in front of the field?
Hi,
To add new fields go to PM01 and select Enhance Infotype option and then follow the steps in sequence.
I am not getting blank space in front of the field. please elaborate it.
Regards,
Raja.D -
E-Recruiting Addition field to Infotype 5107
I'm implementing E-Recruiting for a client.
I added the additional field to infotype 5107 Desired Work Location using PPCI. I also created a custom table for Desired Work Location to store the value of Location (county, institution & etc.). When I added the new field to the infotype 5107 it automatically shows up on the Desired Work Location of E-Recruiting page as a text field. I found the bsp for this page it's desLocn_detail.bsp. Also I have to set two field that are already on the page Country and State to a default value. Both are drop down list.
Here's my question:
1.I would like to make the new field list box i think that's what it is called, where the candidates can select multiple locations. How & where can i do this? And how can i link the value from the custom table that i created to the new field that I added to Infotype 5107 to appear on the list box?
2.How and where can I set Country and State field to the a default value? Is this done in the IMG?
3.I'm assuming the deslocn_detail.bsp is a SAP standard BSP. should I modified this bsp to rendered what I'm supposed to do? If i modified this page when the upgrade/service pack is applys my modification will be wiped out?
any suggestion will be helpful.I think you should take the following approach:
The only sane way to keep multiple values in a single database record that comes to my mind id to create a new table to keep the selections.
It's key should be the same as of the HRP5107 table plus a sequential number for counting selections.
There are further 3 things to consider:
1. Filling up the table before display with current selection.
2. Handlig user selection after submit.
3. Hiding the text field from user input.
ad 1.
I havn't used <htmlb:listbox> before, so I might wrong somewhere, but i guess that you should prepere two tables and pass them to table and selection attributes.
Probably it would be best to store them as attributes of the controller to provide easy access from the bsp.
The proper place to fill these structures is the DO_REQUEST method, probably near the end of the method when all standard stuff is done.
In this method you should read the configuration of available loactions and put it in the 'table' attribute,
and read the table of selections and put them in the 'selection attribute'.
ad 2. The place to handle input is the DO_HANDLE_DATA in the controller. As i've said a haven't used listbox, but probably the are multiple fields with the id of the listbox, each containing a selected item.
You should read them here and place them in the 'table' attribute.
Next you have change the on_save method in the controller (Actually it might be in a parent controller - i haven't checked it).
In there you should insert the values in the 'table' attribute to the custom table with selections (probably you have to delete all entries for the current infotype record first)
ad. 3
Now that i wrote 1 and 2 i see that you can just remove the field from the infotype...
Hope this helps. -
Screen enhancement in ME51N - control is not passing to PBO and PAI of exit
HI ,
I am doing screen Exit for the Tcode : Me51N / Me52N.
I have to add 3 Text fields in item level, i am using Enhancement:MEREQ001(in CMOD).
Initially i added those 3 fields in Structure CI_EBANDB.
Then i designed Screen in Screen Exit:SAPLMEGUI Screen Num:111.
Here in the PBO and PAI Module
MODULE STATUS_0111 , MODULE USER_COMMAND_0111.
the control is not going , i tried with break-point inside these modules.
But while executing ME51N , debugger is not working.
Code i wrote in both PAI and PBO
MODULE STATUS_0111 and MODULE USER_COMMAND_0111.
loop AT SCREEN.
screen-output = '1'.
screen-input = '0'.
MODIFY SCREEN.
endloop.
I need to display the three screen in Display format not in editable format.
Thanks and Regards,
Prakash KHi
You need to write the code in PBO of that screen based on TRANSACTION TYPE.
there is a method call 'get_transaction_state' from this you will get the transaction type (H - create , 'V'- change 'B' -display) at run time.
If run time transaction type = B
LOOP AT screen.
IF screen-name eq c_name . "field names
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
endif. -
Module Programming PBO and PAI flow.
Hi,
I am new to module programming,
My req are - I have 4 input fields and button in my first screen(1000)
After user enters these values then I have to validate this values in the database and then
I need to update 1 field value in the database. After updating I need to display the results in second screen (2000).
Can any one please let me know what is the process in PBO and PAI modules.
How to write code .
1. where to validate field values
2. where to write code for updating database.
3. where to write code for displaying success/failure message in second screen(2000)
4. where to write declarations.
Thanks a lot for ur time .
I highly appreciate ur help.
Venkat.Hello
Check this out:
INCLUDES *
INCLUDE ZIMMFORM001_TOP.
INCLUDE ZIMMFORM001_PBO.
INCLUDE ZIMMFORM001_PAI.
Main Process
START-OF-SELECTION.
CALL SCREEN 100. -> double click
END-OF-SELECTION.
Uncomment the following:
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100. -> double click
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100. -> double click
*& Include ZIMMFORM001_TOP
Global Definitions *
"Your definitions
*& Include ZIMMFORM005_PBO
*& Module STATUS_0100 OUTPUT
text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'MEN'. -> double click -> CREATE SCREEN STATUS 'EXE' AND 'BACK'
SET TITLEBAR 'ZTIT'. -> double click
INITIATE WHATEVER YOU NEED
ENDMODULE. " STATUS_0100 OUTPUT
*& Include ZIMMFORM001_PAI
*& Module USER_COMMAND_0100 INPUT
text
INSIDE THE CASE YOU CAN VALIDATE.WHEN 'EXE' IS SELECTED FOR EXAMPLE.
MODULE user_command_0100 INPUT.
CASE sy-ucomm.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
WHEN 'EXE'.
PERFORM validate_form.
PERFORM save_form_to_db.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
Hope this helps, dont forget to reward
GABRIEL
Message was edited by:
Gabriel Fernando Pulido V. -
Screen exit for co11n and problems in writting the PBO and PAI Logic ?
Hi People,
I am developing a screen exit for transaction co11n. I have found the exit ( CONFPP07 ) ... I created a project and have
assigned this exit and activated the project. I have created a field named SHIFT on clicking this field i have to give three
possible values (a,b,c ) and i have to store these values in some table .......... now my problem is in which include i
have to write PBO and PAI logic ... should i have to write pbo logic in the include provided in the exit
EXIT_SAPLCORU_S_100 and PAI in EXIT_SAPLCORU_S_101.......or .........Can any tel me what should i have to do to
meet the requirements... and in which structure i have to add this field so that it gets stored in some table.
Thanks in Advance.Hi,
Use the includes in the program SAPLXCOF given in CONFPP07 Exit.
You may use include zxcofzzz ( for Subprograms and Modules )
by creating it upon double click.
Regards,
Wajid Hussain P. -
Hi all,
i created a new field in the customer master (xd03) screen with a button. if i click that button, it will display the next screen with the new field. now i need to write the code in PBO and PAI events in that screen to get the data from table and to change the already exiting data.
can any body provide me the sample code wht to write in the PBO and PAI eventts.?
thanks in advance.
kpHi,
I think you find the answer but i still answered your question.
You can use the function module 'DYNP_VALUES_READ' to read value you want and use the function module ' HELP_VALUES_GET_WITH_TABLE' to get the values from kna1 table.
Good luck. -
Why do we need to code loop statement in both PBO and PAI in Table control
Hi friends,
i have 2 questions-
Q1-why do we need to code a loop and endloop statement in both PBO and PAI in Table control,sometimes even empty as well?
Q2-what r d dynpro keywords?Hi,
It is required to pass information from internal table to table control so we loop it in PBO and to get the updated information back, we loop in PAI and update internal table content.
To get more knowledge on Table controls check these threads -
table control
Table Control
Hope this helps.
ashish -
Hi,
I have a requirement where in i have to add a filed in the infotype 0009.
For this i have added the field in the structure ps0009 through append structure. But i have to get the filed in the sceen. Please let me know how to do this.
I have gone to PM01 transaction and for infotype 0009 went into module pool option button and clicked on create screen then its asking for the access key as this is the standard infotype. But i dont know how many screens are related to this infotype as the access key for all the screens is different. I took access for 2 screens but not sure how many screens are there.
Please advice how to proceed.
Thanks,
RajuHi raja,
1. The screen numbers starting with 2
are the ones which will show the data for entry purpose.
2. So while doing pa30, check the exact screen number,
which comes in your case (this is country dependent / customizing dependent)
3. Then accordingly u can enhance those screen.
regards,
amit m. -
New field in Infotype 0009- to update IFSC Code- SAP Note Required
Dear consultants,
One of my client want to maintain their employees IFSC code in the Infotype 0009, where one new field required for this to update IFSC number.
Which SAP note can fulfill this requirement, please do needful.
Thanks & Regards,
NaveshDear Supriya,
Thanks for quick responce, It is helpful. pelase do needful on below issue.
http://scn.sap.com/thread/3517340
Regards,
Navesh -
Adding a field in infotype 0009
Hi,
I have a requirement where in i have to add a filed in the infotype 0009.
For this i have added the field in the structure ps0009 through append structure. But i have to get the filed in the sceen. Please let me know how to do this.
I have gone to PM01 transaction and for infotype 0009 went into module pool option button and clicked on create screen then its asking for the access key as this is the standard infotype. But i dont know how many screens are related to this infotype as the access key for all the screens is different. I took access for 2 screens but not sure how many screens are there.
Please advice how to proceed.
Thanks,
RajuHi raja,
1. The screen numbers starting with 2
are the ones which will show the data for entry purpose.
2. So while doing pa30, check the exact screen number,
which comes in your case (this is country dependent / customizing dependent)
3. Then accordingly u can enhance those screen.
regards,
amit m. -
Additional field in Infotype 0001
I manage to add an additional field in the infotype 0001 in Dev client. I have a bit concern when to apply it in the production client.
Do you have any experience to share on this?hi
test in development server later test in testing server later send it to production server
nothing to worry
all the best -
Process PBO and PAI when Enter key is pressed
Hello everyone,
I am making a program where there is a I/O Box component. When the user enters data in this field and hits the 'ENTER' key I want to process the PBO and the PAI of that screen.
The problem is what should i assign in the ok_code for this?
Please advise.
Thanks in advance,
Karan>
Karan Kappal wrote:
> Hello everyone,
> I am making a program where there is a I/O Box component. When the user enters data in this field and hits the 'ENTER' key I want to process the PBO and the PAI of that screen.
> The problem is what should i assign in the ok_code for this?
>
> Please advise.
>
> Thanks in advance,
> Karan
You want to Go when user Press enter.
In PBO we will set the status,
SET PF-STATUS 'STATUS'. " double click on it or Go to SE41
here activate the Function code for the ENTER button.
in the FUnction keys you can see in the Beginning First Function (Green Tick mark) Give the Function code say ENTER , and give all necessary details and Activate .
Now Test your application.
When your enter the data and press enter, First it Goes to PAI
here you do what ever required based on the action code...
in PAI
case ok_code.
when 'ENTER'.
"your code here...
endcase.
and once it is done, Control backs to PBO .. -
Bank account number field in Infotype 0009
Deal All,
My client's requirement is that in IT0009 the length of Bank account number (BANKN) needs to be increased for a particular affiliate. Currently the length is 18 Character and my client wants to increase it to character 20 for a particular affiliate.
Can anyone please let me know is it possible to do it. If it is not possible then what can be the other alternatives to met the requirement and the impacts of the alternatives.
Thanks & Regards,
Sandip Biswas.Dear Sandip,
Please refer to SAP Note 193078 - Employee/applicant bank details in Russia.
Maybe it is nor specific for your case but SAP recommends to maintain first two digits in Bank key field.
Please make sure whether this solution works for your case.
Regards,
Dilek
Maybe you are looking for
-
Hellow I'm trying to Print continuous pages report, of a Purchase Order (PO). An PO can contain more than one item, say 25 items, in which it will go to second and maybe third page. At the Time of printing and when it comes to the next Page: The prin
-
When I switch from ios 6 to ios 7 my iphone 4s asking to I tunes to update an taking 10 hours and than give me error 3194 what can I do?
-
ITunes Podcasts & Smart Playlists Question
Hi everyone, Thanks for taking the time to read my question. I have a 60gb Colour iPod and have nearly filled it, so do not want to sync any of the podcasts to it. I've disabled Podcast syncing in the options tab after connecting the iPod, but Podcas
-
Unable to connect destinationPlease help me!
I installed oracle Developer6.0 and Oracle 8i personal edition. I am able to login into oracle 8i. But when I was trying to connect it from front end(Developer 6.0) I am getting an error as: Unable to connect destination. Please help me out. OS: Wind
-
Ndata not returning all possible results
i created an index with userdatastore, basic lexer and basic wordlist preferences. Also a section group with ndata section. base letter, substring index all are true. but when i search for 'scri', i am not getting 'de*scri*ption' in the results. pls