cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the default requestor while creating the Invoice

Former Member
0 Kudos

Hi all,

I have requirement to get the default requestor for the invoice being created.

I have tried with the FM 'BBP_USER_GET_ATTRIBUTES' & to get but did not get any solution.

Please help in this regard.

Thanks,

Vishnu

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Pass the invoice no to the FM "BBP_PD_INV_GETDETAIL".In the export parameter "E_HEADER",you can find the creator of the invoice in the field "CREATED_BY".

BR,

Disha.

DO reward points for useful answers.

Former Member
0 Kudos

Hi Disha,

Thanks a lot for your reply.

I am getting the username in the CREATED_BY field. But, i need the Requestor Partner Id.

Please help me in this.

Thanks,

Vishnu

Former Member
0 Kudos

Hi,

In the table BUT000,you can find the BP no for a user.Pass the user 's first or last name in the fields MC_NAME2 or MC_NAME1 resp.

To get the user's first name and last name from the user ID,you can use the FM "BAPI_USER_GET_DETAIL".

BR,

Disha.

Do reward points for useful answers.

Former Member
0 Kudos

Hi Disha,

Thanks for the reply.

The problem is solved.

I have taken the the t_partner table from the 'BBP_PD_INV_GETDETAIL' and extracted the record as Partner function '00000016'.

Anyway your pointer helped me a lot.

Thanks,

Vishnu