Maintain data in infotype 0695
Hi All,
I need to maintain data in infotype 0695 for printed forms sequence number.
Can any one help me how to enter data in Infotype 0695?
And what is the transaction code & function module for that.
Because i checked PA30 we can not use PA30 for this.
Thanks
Did you try the Std report RPUPAV00?
~Suresh
Similar Messages
-
Maintain texts for Infotype 0019 via ABAP.
Hi,
The issue is related to maintaining texts for Infotype 0019. I have a program below. The main problem is I am facing is for some records it inserts text in Infotype (0019) but for some it does not. Can anyone suggest why so or a way to resolve this problem ???
REPORT ytbctest009.
TABLES: pernr, pcl1.
INFOTYPES: 0019.
DATA: key LIKE pskey.
DATA: BEGIN OF ptext OCCURS 200.
DATA: line(72).
DATA: END OF ptext.
SELECTION-SCREEN BEGIN OF BLOCK abc WITH FRAME TITLE text-001.
PARAMETERS: p_pernr LIKE pernr-pernr.
SELECTION-SCREEN END OF BLOCK abc.
ptext-line = 'TEST 1'.
APPEND ptext.
ptext-line = 'Test 2'.
APPEND ptext.
ptext-line = 'Test 3'.
APPEND ptext.
rp-read-infotype p_pernr 0019 0019 '18000101' '99991231'.
SORT p0019 DESCENDING.
READ TABLE p0019 INDEX 1.
p0019-itxex = 'X'.
MOVE-CORRESPONDING p0019 TO key .
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '0019'
number = p_pernr
validityend = p0019-endda
validitybegin = p0019-begda
record = p0019
operation = 'MOD'.
EXPORT ptext TO DATABASE pcl1(tx) ID key.
Thanks in advance.Hi Rajashree,
I hope , below code will solve the problem.
<b>Main Code</b>
FUNCTION zhr_mustus_update_it0019.
*"*"Local interface:
*" IMPORTING
*" VALUE(IM_PERNR) TYPE P0019-PERNR OPTIONAL
*" VALUE(IM_USRID) TYPE PA0105-USRID OPTIONAL
*" VALUE(IM_SUBTY) TYPE P0019-SUBTY
*" VALUE(IM_TERMN) TYPE P0019-TERMN OPTIONAL
*" VALUE(IM_MNDAT) TYPE P0019-MNDAT OPTIONAL
*" VALUE(IM_BVMRK) TYPE P0019-BVMRK OPTIONAL
*" VALUE(IM_TEXT) TYPE CHAR30 OPTIONAL
*" EXPORTING
*" VALUE(EX_RETURN_MESSAGE) TYPE STRING
*" VALUE(EX_MESSAGE_ID) TYPE ARBGB
*" VALUE(EX_MESSAGE_NUMBER) TYPE MSGNR
*" EXCEPTIONS
*" SYSTEM_FAILURE
*" COMMUNICATION_FAILURE
REFRESH bdcdata.
REFRESH it_bdc_message.
* Validations
PERFORM validations USING im_usrid im_subty im_mndat
CHANGING im_pernr
g_task_date
g_rem_date.
* Return message
MOVE:
g_message TO ex_return_message,
'ZMSGHR' TO ex_message_id,
g_msgno TO ex_message_number.
* If there any error don't process
CHECK ex_return_message IS INITIAL.
* If reminder date is missing then its creation
IF im_mndat IS INITIAL.
* Fill BDC for PA30 Creation
PERFORM fill_bdc_for_creation USING im_pernr
im_subty
im_text
g_task_date
g_rem_date.
ELSE.
* Its a change, Fill BDC for PA30 change
PERFORM fill_bdc_for_change USING im_pernr
im_subty
im_termn
im_bvmrk
im_text.
ENDIF.
* Call transaction PA30
PERFORM bdc_call_transaction.
* Return message
MOVE:
g_message TO ex_return_message,
g_msgid TO ex_message_id,
g_msgno TO ex_message_number.
ENDFUNCTION.
<b>All Above Subroutines,</b>
*& Form Validations
* Validations for MUS/TUS
* -->U_USRID User id for TUS
* -->U_SUBTY Subtype 10 - MUS, 11 - TUS
* -->U_MNDAT Reminder date
* <--PERNR Person for MUS
* <--U_TASK_DATE Task date
* <--U_REM_DATE Reminder date
FORM validations USING u_usrid LIKE pa0105-usrid
u_subty LIKE p0019-subty
u_mndat LIKE p0019-mndat
CHANGING u_pernr LIKE p0019-pernr
u_task_date LIKE sy-datum
u_rem_date LIKE sy-datum.
DATA:
BEGIN OF it_tmp_0019 OCCURS 0,
termn LIKE pa0019-termn,
END OF it_tmp_0019.
CLEAR g_message.
* Validations for MUS
IF u_subty EQ c_subty_10.
MOVE sy-datum TO u_task_date.
IF u_pernr IS INITIAL.
* Person number is missing
MOVE:
text-001 TO g_message,
'003' TO g_msgno.
ELSEIF u_mndat IS INITIAL.
* Its creation, check if there is already a open item
SELECT pernr
FROM pa0019
INTO u_pernr
WHERE pernr EQ u_pernr
AND subty EQ u_subty
AND bvmrk NE '2'.
EXIT.
ENDSELECT.
IF sy-subrc EQ 0.
* Throw an error if there is already a open item
MOVE:
text-006 TO g_message,
'004' TO g_msgno.
ENDIF.
ENDIF.
ENDIF.
* Validations for TUS
IF u_subty EQ c_subty_11.
IF u_usrid IS INITIAL
AND u_pernr IS INITIAL.
* User/Person number is missing
MOVE:
text-002 TO g_message,
'005' TO g_msgno.
ELSEIF NOT u_usrid IS INITIAL.
SELECT pernr
FROM pa0105
INTO u_pernr
WHERE usrid EQ u_usrid.
ENDSELECT.
IF u_pernr IS INITIAL.
* Person number is missing
MOVE:
text-001 TO g_message,
'006' TO g_msgno.
ENDIF.
ENDIF.
IF g_message IS INITIAL.
SELECT termn
FROM pa0019
INTO TABLE it_tmp_0019
WHERE pernr EQ u_pernr
AND subty EQ u_subty
AND bvmrk NE '2'.
READ TABLE it_tmp_0019 WITH KEY termn = sy-datum.
* There is no open task for today
IF sy-subrc NE 0.
MOVE sy-datum TO u_task_date.
ELSE.
* There is a open task for today, new task should be created next
* available date and reminder date is yesterday's date
SORT it_tmp_0019 DESCENDING.
READ TABLE it_tmp_0019 INDEX 1.
u_task_date = it_tmp_0019-termn + 1.
u_rem_date = sy-datum - 1.
ENDIF.
ENDIF.
ENDIF.
ENDFORM. "VALIDATIONS
*& Form Fill_bdc_for_creation
* BDC data for creation , Transaction PA30
* -->U_PERNR Person
* -->U_SUBTY Subty MUS - 10, TUS - 11
* -->U_TEXT Text
* -->U_TASK_DATE Task date
* -->U_REM_DATE Task date
FORM fill_bdc_for_creation USING u_pernr LIKE p0019-pernr
u_subty LIKE p0019-subty
u_text TYPE char30
u_task_date LIKE sy-datum
u_rem_date LIKE sy-datum.
* Scree1
DATA:
l_task_date(10),
l_rem_date(10).
* Use system date as Task date
WRITE:
u_task_date TO l_task_date,
u_rem_date TO l_rem_date.
PERFORM bdc_dynpro USING 'SAPMP50A' '1000'.
PERFORM bdc_field USING 'RP50G-PERNR'
u_pernr.
PERFORM bdc_field USING 'RP50G-CHOIC'
'0019'.
PERFORM bdc_field USING 'RP50G-SUBTY'
u_subty.
PERFORM bdc_field USING 'BDC_OKCODE'
'=INS'.
* Screen2
PERFORM bdc_dynpro USING 'MP001900' '2000'.
PERFORM bdc_field USING 'P0019-TMART'
u_subty.
PERFORM bdc_field USING 'P0019-TERMN'
l_task_date.
IF NOT u_rem_date IS INITIAL.
PERFORM bdc_field USING 'P0019-MNDAT'
l_rem_date.
ENDIF.
PERFORM bdc_field USING 'RP50M-TEXT1'
u_text.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'MP001900' '2000'.
PERFORM bdc_field USING 'P0019-TMART'
u_subty.
PERFORM bdc_field USING 'P0019-TERMN'
l_task_date.
IF NOT u_rem_date IS INITIAL.
PERFORM bdc_field USING 'P0019-MNDAT'
l_rem_date.
ENDIF.
PERFORM bdc_field USING 'RP50M-TEXT1'
u_text.
PERFORM bdc_field USING 'BDC_OKCODE'
'=UPD'.
ENDFORM. "fill_bdc_for_creation
*& Form fill_bdc_for_change
* BDC data for change , Transaction PA30
* -->U_PERNR Person
* -->U_SUBTY subtype MUS - 10 , TUS - 11
* -->U_MNDAT Reminder date
* -->U_BVMRK Status
* -->U_TEXT Text
FORM fill_bdc_for_change USING u_pernr LIKE p0019-pernr
u_subty LIKE p0019-subty
u_termn LIKE p0019-termn
u_bvmrk LIKE p0019-bvmrk
u_text TYPE char30.
* Scree1
DATA l_termn_date(10).
WRITE u_termn TO l_termn_date.
PERFORM bdc_dynpro USING 'SAPMP50A' '1000'.
PERFORM bdc_field USING 'RP50G-PERNR'
u_pernr.
PERFORM bdc_field USING 'RP50G-CHOIC'
'0019'.
PERFORM bdc_field USING 'RP50G-SUBTY'
u_subty.
PERFORM bdc_field USING 'RP50G-BEGDA'
l_termn_date.
PERFORM bdc_field USING 'RP50G-ENDDA'
l_termn_date.
PERFORM bdc_field USING 'BDC_OKCODE'
'=MOD'.
* Screen2
PERFORM bdc_dynpro USING 'MP001900' '2000'.
PERFORM bdc_field USING 'P0019-TMART'
u_subty.
PERFORM bdc_field USING 'P0019-TERMN'
l_termn_date.
PERFORM bdc_field USING 'RP50M-TEXT1'
u_text.
PERFORM bdc_field USING 'P0019-BVMRK'
u_bvmrk.
PERFORM bdc_field USING 'BDC_OKCODE'
'=UPD'.
ENDFORM. "fill_bdc_for_change
FORM bdc_call_transaction.
DATA:
l_mode(1) TYPE c VALUE 'N',
l_lines TYPE i,
l_msgvar1 LIKE balm-msgv1,
l_msgvar2 LIKE balm-msgv2,
l_msgvar3 LIKE balm-msgv3,
l_msgvar4 LIKE balm-msgv4.
CALL TRANSACTION 'PA30' USING bdcdata MODE l_mode
MESSAGES INTO it_bdc_message.
* Get last message
DESCRIBE TABLE it_bdc_message LINES l_lines.
READ TABLE it_bdc_message INDEX l_lines.
MOVE:
it_bdc_message-msgid TO g_msgid,
it_bdc_message-msgnr TO g_msgno,
it_bdc_message-msgv1 TO l_msgvar1,
it_bdc_message-msgv2 TO l_msgvar2,
it_bdc_message-msgv3 TO l_msgvar3,
it_bdc_message-msgv4 TO l_msgvar4.
* Prepare message
CALL FUNCTION 'MESSAGE_PREPARE'
EXPORTING
language = sy-langu
msg_id = g_msgid
msg_no = g_msgno
msg_var1 = l_msgvar1
msg_var2 = l_msgvar2
msg_var3 = l_msgvar3
msg_var4 = l_msgvar4
IMPORTING
msg_text = g_message
EXCEPTIONS
function_not_completed = 1
message_not_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
MOVE text-005 TO g_message.
ENDIF.
ENDFORM. "BDC_FIELD
* Start new screen *
FORM bdc_dynpro USING program dynpro.
CLEAR bdcdata.
bdcdata-program = program.
bdcdata-dynpro = dynpro.
bdcdata-dynbegin = 'X'.
APPEND bdcdata.
ENDFORM. "BDC_DYNPRO
* Insert field *
FORM bdc_field USING fnam fval.
CLEAR bdcdata.
bdcdata-fnam = fnam.
bdcdata-fval = fval.
APPEND bdcdata.
ENDFORM. "BDC_FIELD
Cheers.
Santosh. -
Error coming while modifying data in infotype through HR_INFOTYPE_OPERATION
I have created a report which reads a excel file fom the system and then upload data in infotype 0077 through HR_INFOTYPE_OPERATION. In this report first I check if the record exists in IT0077 for a particular employee , if not then creates a new record with the input file data and if the records exists then I need to modify that record.
But the problem is that on updation the function module HR_INFOTYPE_OPERATION always return an error that "Infotype doesnot exist", although its exists in the system.
Why this error comes when once I excuted the report with a pernr number for creation and then I execute with teh same data to modify it, it gives an error in modification.iam not sure
When we create we have to use INS in the code and when we modify we have to use Operation MOD
Since Dilek our Techinical consultant is there hope your issue is solved -
Short dump while changing the end date of infotype 0167 through PA30
Hi all,
I am getting short dump while changing the end date of infotype 0167(Health Plans) through Tcode PA30.
dump descript is as below
An exception occurred that was not caught.
Runtime Errors UNCAUGHT_EXCEPTION
Except. CX_HRPA_VIOLATED_POSTCOND
Date and Time 11.03.2010 07:06:26
What happened?
The exception 'CX_HRPA_VIOLATED_POSTCONDITION' was raised, but it was not
caught anywhere along
the call hierarchy.
Since exceptions represent error situations and this error was not
adequately responded to, the running ABAP program
'CL_HRPA_SAPUP50R_ADAPTER======CP' has to be
terminated.
thanks
shahidSearch OSS Notes for that.
-
How to maintain data in table control
plz send a detail description of how to create table control and maintain data in that table control.
Hello Narendar,
Check the following link:
http://help.sap.com/saphelp_erp2005/helpdata/en/45/adee2396f711d1b46b0000e8a52bed/frameset.htm
Also, a table control wizard in Screen Painter(SE51) exists, which takes you step by step through the Table Control generation and also creates code, so you can start using the Table Control right away.
You can either specify a database table, or use an internal table from program.
If you want to use internal table, it needs to be predefined in your program, before you start creating the table control.
Reward if helpful. -
Hi,
My client wants me to download all the data in infotypes(std and custom) from production client. Then they will migrate this data to their new system. What would be the approach for downloading?
1. Through SE16N (we are not authorized to use SE11/SE16)? But couldnt save the data to local file when we use se16n.
even i get se11 authorization -> we can download only 64,000 records in excel. Do i need to split? or any other way?
2. Write custom progms to download data from infotypes.
3. Any data migration tools ?
4. Basis can do client copy?
Thanks!Hi,
U can write a report to donwload data, but my preferde way is to use the hr toolbox (Transaction PU12), it's very simple to use .
Here is a link to know how ti use it :
http://shafiq.us/sap/index.php?option=com_content&view=article&id=47:hr-interface-toolbox-pu12&catid=36:pu12tutorial&Itemid=14
i Hope it helps u. -
Hi Experts,
I have to fetch all data from infotype 0581,can you suggest me how to do this
in sap abap-hr.
I am not using LDB in my report.
Thanks&Regards
PriyaranjanYou can use Function module "HR_READ_INFOTYPE"
-
How to upload data in infotype 0025 (Appraisals)
I want to make an upload program for infotype 0025 (Appraisals). The program will upload the data in 'Potentials' but I cannot make a recording work in it. Each time the system posts the data into next row and recording does not work since the line number is fixed in recording. There is no + sign to add a row at the top. Can someone please tell me a way to do this or if there is a Function Module that can upload data into infotype 0025.
ThanksDear Sohaib,
This upload could not be performed by BDC recording. You will have to make use of around four Appraisal BAPI's to create an entry in Infotype 25(Appraisals). I had the same scenario of uploading appraisal data here at NBP(National Bank of Pakistan). Here is the link for the article i wrote,covering this topic in depth,along with the complete solution:
http://scn.sap.com/docs/DOC-32084
If you like this article,kindly flag it as a 'Correct Answer.
Regards,
Fahad -
Hello!
I am developing an inbound IDoc, during which i am suppose to insert respective segment structure into infotypes PA0000, PA0001, PA0002, PA0006 & PA0008 through Function Module RH_INSERT_INFTY, its throwing error sy-subrc 1, i can give sample code of it
CALL FUNCTION 'RH_INSERT_INFTY'
EXPORTING
fcode = 'INSE'
vtask = 'S'
order_flg = 'X'
commit_flg = 'X'
repid = sy-repid
TABLES
innnn = innnn
EXCEPTIONS
no_authorization = 1
error_during_insert = 2
repid_form_initial = 3
corr_exit = 4
begda_greater_endda = 5
OTHERS = 6.
The internal table innnn has record of type as follows
710 12080033 12/31/2006 12/27/2005 000 01/02/2006
When Idoc is posted through We19 through 'RH_INSERT_INFTY', it throws Sy-Subrc 1.
When the same record is input manually through SE37 into function Module 'RH_INSERT_INFTY', it throws error_during_insert,
Can any guys suggest me to come out of this problem, if possible suggest any other standard Fuction Module to insert data into Infotypes,
Thank You
Regards
RajeshHi Rajesh,
The function module 'RH_INSERT_INFTY lets you insert multiple infotype records for OM objects into the Personnel Planning databases (HRPnnnn). ie the PD infotypes. For updating PA infotypes pl use 'HR_INFOTYPE_OPERATION' as suggested by others earlier.
Regards,
Suresh Datti -
Reading dates from infotype 41
I need to obtaint a subtype of date from infotype 41 but the problem is that infotype 41 has many fields like
dar01 - dat01, dar02 - dat02, darN - datN the subtype that I need is the '01' but I don't know how to get it becuase sometimes is in the dar01, or in the dar02, or darN, is there any function module that can help me?
Thanx in advanceHi ,
This exactly what you are trying to do
*--Decleare internal table
TYPES : BEGIN OF ty_pa0041,
pernr TYPE pa0041-pernr,
dar01 TYPE pa0041-dar01,
dat01 TYPE pa0041-dat01,
dar02 TYPE pa0041-dar02,
dat02 TYPE pa0041-dat02,
dar03 TYPE pa0041-dar03,
dat03 TYPE pa0041-dat03,
dar04 TYPE pa0041-dar04,
dat04 TYPE pa0041-dat04,
END OF ty_pa0041.
DATA : lt_pa0041 TYPE STANDARD TABLE OF ty_pa0041,
ls_pa0041 TYPE ty_pa0041.
*--Read Secondment end date ( For my case it's RG)
SELECT pernr
dar01 dat01 dar02 dat02 dar03 dat03 dar04 dat04
INTO TABLE lt_pa0041
FROM pa0041
WHERE pernr = gs_final-pernr AND
endda = '99991231'.
*--Find out corrosponding date according to 'RG'
LOOP AT lt_pa0041 INTO ls_pa0041.
IF ls_pa0041-dar01 = 'RG'.
lv_date1 = ls_pa0041-dat01.
ELSEIF ls_pa0041-dar02 = 'RG'.
lv_date1 = ls_pa0041-dat02.
ELSEIF ls_pa0041-dar03 = 'RG'.
lv_date1 = ls_pa0041-dat03.
ELSEIF ls_pa0041-dar04 = 'RG'.
lv_date1 = ls_pa0041-dat04.
ENDIF.
ENDLOOP.
I hope it fits your requirement -
Uploading data in infotype-0586 and infotype-0587
Dear Experts,
Can i use the standard bapi HR_INFOTYPE_OPERATION for uploading data into infotype-0586( sec 80c deduction) and infotype-0587 (pf related).if so what are the parameters to be passed for the upload.
Please inform if there are any other bapi for the upload process.
regards,
Aeroshil NameirakpamHi,
yes you can use...HR_INFOTYPE_OPERATION for your purpose.
in that you should pass....
INFTY - infotype number
NUMBER --pernr
SUBTYPE --subtype of infotype (if applicable)
VALIDITYEND -ENDDA
VALIDITYBEGIN -BEGDA
but before you call this FM...make sure that you lock the employee for which you are updating the record and after this FM updates the record for that employee make sure you unlock the employee...
to lock the pernr ...use FM....HR_EMPLOYEE_ENQUEUE
and to unlock...use FM... HR_EMPLOYEE_DEQUEUE
in both of these FMs you just need to passs PERNR..
summerizing this...first use...
HR_EMPLOYEE_ENQUEUE
then call...HR_INFOTYPE_OPERATION
and then...
HR_EMPLOYEE_DEQUEUE
thats it!
<b>Reward Points if answer was helpful,</b>
Regards,
Tejas -
GRC 10: Maintain Data Sources Config Problem
Hi All,
I was trying to configure the User Data Sources for:
1. Search
2. User Details
During this, I went to SPRO->GRC->AC->Maintain Data Sources Configuration. Here, first I tried to configure User Search Data Sources. When I clicked on New Entries, It gave me a screen wherein I have to fill details for:
1. Target Connector
2. Sequence
3. User Data Type
In Target Connector, I could find the connector I defined for the back end system and I could select it.
In Sequence field, it is not showing any possible values. However, we can mention any value I believe. Then I mentioned like 12.
In User Data Type, I shows as a possible values option. But when I click F4, it says:
No Values Found
Can anybody help me configuring this?
Regards,
FaisalHello Faisal,
Please note that you can have backend connectors as LDAP, SAP HR system
Now the question is if you are using SAP HR system (i.e. a ECC system with HR module implemented) then
1) Target Connector --> RFC name for the SAP ECC system
2) Sequence --> you can put it as 1 ( if multiple then you may decide which should be 1st source , 2nd source and so on)
3) User data Type : It can be SU01 or HR
If you are using LDAP as data source then ,see to it that you have maintained all the details for LDAP as required in SPRO configuration.
i.e. create LDAP connector,Register the program at OS level, make necessary settings in transaction : LDAP
Hope this helps.
Regards,
Victor -
Where we maintain data for this Table T015W in SPRO
Hi Gurus,
I wanted to know that where we maintain data for this table T015W.
This Table relates to banking.Hello,
You could maintain the instruction keys in SPRO under the path
Financial Supply Chain Management > Treasury and Risk Management > Basic Functions > SAP Business Partner for Financial Services > Settings for Financial Services > General Settings > Basic Settings > Define Instruction Keys
Kind regards,
Vinodh -
How to maintain data in scrren using ztable
how to update data in ztable by using program...
plz send a model problem...
i m creating screen(SE51) with ztable fields how to maintain data in that screen. also i m creating transaction for that screen..Hi
There sample programes given SAP itself.
Go to SE80 and select package as SDWA and press enter
You will see whole list of screen sample programs, you can modify the code little bit to suit the tables u want to update.
Regards
Balaji -
Hello,
In what table data of infotype 0031 is saved?
I checked it in pa0031 and it is empty.
Thanks,
PaulinaHello Paulina
Infotype 0031 is stored in table PA0031. If the table is supposed to hold data then you should see it in transaction <b>PA30 </b>(choosing infotype 0031).
Regards
Uwe
Maybe you are looking for
-
Unable to restore, gives me an error message!
My ipod has been on the fritz for well over 3 weeks now. Its a click wheel ipod, w/ the black and white screen. I've been ignoring the problem, and now i have a big problem. At first my ipod was reading the very low battery screen, so i left it charg
-
Scale base value with price discrepancy credit note
Hi gurus, I have a problem in which credit notes for price discrepancies are having direct effect over scale base value in structure S060. I tried to modify the update rules, but found out this is hard coded for this structure. The other solution wil
-
What is the best way to install Microsoft Word?
Unable to download successfully.
-
Can't import into Shapes Project Palette
I'm working through the Apple Pro Series DVDSP 3 and the lesson requires me to import a layered Photoshop file into Palette - Shapes - Project. Initially, I had to import and the file appeared in the Custom tab. I followed the steps to import into th
-
Formule used in the transaction MP30 for calcolate the value ROP.
Dear gurus, in the transaction MP30 we insert the value in the field "Corrected value" and the system calcolate a value of the parameter Reorder Point . What formule use for calcolated this value? How this value is calcolated.? Thansk a lot Daniele