2010 Sep 17 10:56 AM
Dear Expert,
I want to add a sequence number when create new loan type which is this loan type sequence number has achieve 99. We want to add from A0-Z9 then continue from AA-ZZ and we are using function HR_INFOTYPE_OPERATION but there is an error message Runtime Error CONVT_NO_NUMBER has occured. We try to put the sequence number (AA-ZZ) on OBJPS.
My question: can we use character on OBJPS or we can only use number on OBJPS?
Is there any other way beside using this function?
Thank you very much.
Regards,
Lia
Dear Expert,
I want to add a sequence number when create new loan type which is this loan type sequence number has achieve 99. We want to add from A0-Z9 then continue from AA-ZZ and we are using function HR_INFOTYPE_OPERATION but there is an error message Runtime Error CONVT_NO_NUMBER has occured. We try to put the sequence number (AA-ZZ) on OBJPS.
My question: can we use character on OBJPS or we can only use number on OBJPS?
Is there any other way beside using this function?
Thank you very much.
Regards,
Lia
2010 Sep 17 5:02 PM
Lia,
You can use Characters for OBJPS. If FM HR_INFOTYPE_OPERATION is giving error you can use BDC for data upload.
Regards,
Ramu N.
2010 Sep 20 9:48 AM
Dear Ramu,
Can you explain to me, the error was caused by? It is because I was put the character on OBJPS or something else?
Thanks.
Lia
2010 Sep 20 11:16 AM
Lia,
The problem is because of the character in OBJPS and this problem comes when you are using HR_INFOTYPE_OPERATION.
OBJPS accepts character when you maintain data from BDC or PA30.
Regards,
Ramu N.
2010 Sep 21 2:45 AM
Dear Ramu,
Is this mean that we can't use HR_INFOTYPE_OPERATION if we want to fill the OBJPS with character?
Hmmm... So we better use the BDC than this function if we want to fill the character...
Ok...
Thank you for your answer, Ramu...
Regards,
Lia
2010 Sep 21 4:28 AM
Dear Ramu,
I have another question, we want to use this function because we want to insert and delete data. I have an information, if we use this function, than there are some validation from SAP. exm: validation if we want to delete data, but the date and month are different and also there is an error message, we cannot delete data if payroll process already run.
If we use BDC, it's mean we must make the validation manually?
Do you have any idea?
Regards,
Lia
2010 Sep 21 7:57 AM
Lia,
The system will take care of all the validations of SAP. No need to maintain the validations manually.
Regards,
Ramu N.
2010 Sep 21 8:16 AM
Dear Ramu,
Thank you very much for your response....
I will try to implement it.... If it's work, I will tell you...
Regards,
Lia
2010 Sep 20 12:07 PM
Can you post your code?
I dont find any OBJPS parameter in FM interface!
If it's field "OBJECTID", yes you can use char2.
Regards,
Sumit
2010 Sep 21 3:03 AM
Dear Sumit,
Thank you for your respond...
This is the parameter:
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '0045'
NUMBER = i_data-pernr
SUBTYPE = subty
VALIDITYBEGIN = i_data-budat
RECORD = record1
OPERATION = 'INS'
TCLAS = 'A'
NOCOMMIT = 'X'
IMPORTING
RETURN = return.
KEY = key.
Record is an internal table with structure same as PA0045 and on that table there is field OBJPS that store sequence number. So if we put the internal table like this:
record1-pernr = i_data-pernr.
record1-subty = i_data-lgart.
record1-begda = i_data-budat.
record1-dlart = i_data-lgart.
record1-datbw = i_Data-budat.
record1-darbt = i_data-wrbtr.
record1-dkond = '01'.
record1-tilbg = i_data-budat.
record1-objps = 'ZZ'.
and we call that function, the error message will appear.
Do you have any idea about this problem?
Thank you.
Regards,
Lia
2010 Oct 05 9:30 AM
2011 Mar 15 2:33 PM
Hi,
Please advise how you solved this I am in a similar situation and I need to sort it out.
Thank you and kind regards,
Ken
2014 Jun 30 6:04 PM
2016 May 03 10:24 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |