How do you use an SAP function that expects a structure?

In general, can you use a function that expects a structure to be passed to it? I posted another message before, but noone answered it. It seems like it should work, but there’s an ABAP sytax error when I try it (see previous message please).

Thanks,
Nile


Nile :us: (BOB member since 2004-02-12)

Yes you can. What error do you get? What function? What mapping?


Werner Daehn :de: (BOB member since 2004-12-17)

The HR Rapidmart does not provide annual salary information for hourly employees, and this SAP function does that for you. I’ve imported it, but get an ABAP program syntax error while trying to execute it. The function expects a structure to be populated, and this may be the problem.

CALL FUNCTION ‘RP_ANSAL_FROM_INFOTYPE’
EXPORTING
F_DATE = PA00089BEGDA
F_TCLAS = ‘A’
:I0001:PERNR = PA00019PERNR

“Unable to interpret “PERNR”. Possible causes: Incorrect spelling or co”
“mma error.” - is the error when trying to execute the DS generated ABAP using SE38.

The other issue is, this function has over 300 values that need to be passed if you do it one by one vs passing just the Infotypes p0001 and p0008. Those should be optional and have a “:” in front of the value in the function wizard. However, DS seems to have a problem with all of the data types. I did pass them 1 by 1 (as annonying as that was), and I still can’t get it to work.

Thank you for looking at this post,
Nile


Nile :us: (BOB member since 2004-02-12)

Does anyone know the answer to this?

Thanks,
Nile


Nile :us: (BOB member since 2004-02-12)

Did you ever get an answer to this one?

We have something similar in that we are using a function call within our DI Job and one of the parameters is the CCRVL_EXP structure(SAP)

We keep getting an error message about parsing. We tried putting the structure within quotes, parenthesis, no luck!

Any help is deeply appreciated.


toscajo (BOB member since 2002-09-04)

No I never did get an answer. I don’t think you can do it. But, I’ve been able to work around this limitation. Which function are you trying to use?Is it REVISION_LEVEL_TABLE_EXPORT - in which case you may be able to look at the source code for that function and go after the transparent tables that it uses, and mimic what that function is doing within your R3 dataflow. Good luck.


Nile :us: (BOB member since 2004-02-12)

Yes it is exactly that function.

Thanks I will try to go through it but it seems to me that DI should be able or ought to be able to do this for us?


toscajo (BOB member since 2002-09-04)