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: 

OBJNR: VB0000002170000010 in VBELN and POSNR

Former Member
0 Kudos

Hi,

is there any table of FM to get an SD-VBELN and SD-POSNR

by the OBJNR VB0000002170000010.

Thanks.

Regards, Dieter

1 ACCEPTED SOLUTION

krishnendu_laha
Active Contributor
0 Kudos

Hi Dieter,

It is hard to find a FM to make vbeln and posnr from objnr.

i think OBJNR is used to update in some status table like NAST.

and the value is programitacally pass to update in that table; and all the records will conatins same format.

so to fetch VBELN and POSNR from OBJNR...

follow this code:

data: loc_objnr(18) type c,

loc_vbeln(10) type c,

loc_posnr(6) type c.

loc_objnr = OBJNR.

loc_vbeln = loc_objnr+2(10).

loc_posnr = loc_objnr+12(6)

i think it will solve ur problem.

Regards

Krishnendu

7 REPLIES 7

Former Member
0 Kudos

Hi,

any idea?

Regards, Dieter

Former Member
0 Kudos

Object number in what context?

Former Member
0 Kudos

Look for table names starting with ONR (maybe ONRDO).

Rob

0 Kudos

Hi Rob,

thanks it's solved.

I found it in ONRVB. i think the table name is ONR + OBJNR(2).

Regards, Dieter

krishnendu_laha
Active Contributor
0 Kudos

Hi Dieter,

It is hard to find a FM to make vbeln and posnr from objnr.

i think OBJNR is used to update in some status table like NAST.

and the value is programitacally pass to update in that table; and all the records will conatins same format.

so to fetch VBELN and POSNR from OBJNR...

follow this code:

data: loc_objnr(18) type c,

loc_vbeln(10) type c,

loc_posnr(6) type c.

loc_objnr = OBJNR.

loc_vbeln = loc_objnr+2(10).

loc_posnr = loc_objnr+12(6)

i think it will solve ur problem.

Regards

Krishnendu

former_member194669
Active Contributor
0 Kudos

Hi,

What about OBJNR field in VBAK?

aRs

Former Member
0 Kudos

You can get it from VBAK table.

thanks..