Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

OBJPS on Function HR_INFOTYPE_OPERATION Infotype IT045

Former Member
0 Likes
2,091

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

13 REPLIES 13
Read only

Former Member
0 Likes
1,874

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.

Read only

0 Likes
1,874

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

Read only

0 Likes
1,874

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.

Read only

0 Likes
1,874

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

Read only

0 Likes
1,874

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

Read only

0 Likes
1,874

Lia,

The system will take care of all the validations of SAP. No need to maintain the validations manually.

Regards,

Ramu N.

Read only

0 Likes
1,874

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

Read only

Former Member
0 Likes
1,874

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

Read only

0 Likes
1,874

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

Read only

Former Member
0 Likes
1,874

Ok, solved.

Read only

0 Likes
1,874

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

Read only

0 Likes
1,874

How did you solve it?

Read only

0 Likes
1,874

Did you solve it?