Application Development 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: 

how to get vendor and company code based on logistic invoice document

Former Member
0 Kudos

how to get vendor and company code based on logistic invoice document in abap/4?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Plz try like this...

select LIFNR BUKRS into table <internal table> from RSEG where belnr = <lv_belnr> and gjahr = <lv_gjahr>.

Hope it will helps

6 REPLIES 6

uwe_schieferstein
Active Contributor
0 Kudos

Hello Kumar

When you call BAPI_INCOMINGINVOICE_GETDETAIL using

INVOICENUMBER = <number of invoice> 
FISCALYEAR = <fiscal year>

the returned HEADERDATA contains what you are looking for:

HEADERDATA-COMP_CODE
HEADERDATA-DIFF_INF

Regards

Uwe

Former Member
0 Kudos

Hi Uwe,

Thanks for response. But I want select statement for this query and what are the tables used for this select statement?

Thanks & regards,

kumarraju.

0 Kudos

hi,

use these tables and write a simple select query.

RBKP

RSEG.

Former Member
0 Kudos

try table EKBE.

plz dont create duplicates.

regards

Prabhu

Former Member
0 Kudos

Hi,

Plz try like this...

select LIFNR BUKRS into table <internal table> from RSEG where belnr = <lv_belnr> and gjahr = <lv_gjahr>.

Hope it will helps

Former Member
0 Kudos

try this functin module.

SUPO_GET_VENDORID_COMPANYCODE

jithendra