Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BAPI_PTMGRATTABS_MNGCREATION vs BAPI_ABSENCE_CREATE

Hello to the java and hr experts,

can you please help me.

I am using the following code for booking leave (infotype 2006)

static final String BAPI_ADD = "BAPI_PTMGRATTABS_MNGCREATION"; // book leave

... and so on

...

jcoUrlAdd = mRepository.getFunctionTemplate (BAPI_ADD).getFunction();

// Get results

//----


rc = jcoUrlAdd.getTableParameterList().getTable ("RETURN").getString ("TYPE");

rcMessage = jcoUrlAdd.getTableParameterList().getTable ("RETURN").getString ("MESSAGE");

retUrlAdd = jcoUrlAdd.getExportParameterList().getStructure ("HRTIMESKEY");

Now i want to do the same under the old infotype 2001

using BAPI_ABSENCE_CREATE

Can somebody tell me, where to find a description of the output (structure or table and fields) or does somebody

have some lines of code.

Thanks a lot in advance

Christian

Tags:
Not what you were looking for? View more on this topic or Ask a question