Application Development and Automation 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: 
Read only

Dmbtr value

Former Member
0 Likes
1,368

Hi,

iam new to sap abap...

in mard select entries

Matnr-210004, lgort-39, pstat-D, lvorm=null, LFGJA=2012 ,LFMON=12, Labst,Umlme,insmeeinme,retme(All Field) =0.000 (only one entries there and one storage location)

mseg table :

Matnr-210004, lgort-Blank, Bwart-303 ,DMBTR-5.19, SHKZA-S (This field i need to join)

Matnr-210004, lgort-39, Bwart-301 ,DMBTR-2593.12, SHKZA-S

Matnr-210004, lgort-39, Bwart-301 ,DMBTR-2593.12, SHKZA-S

Matnr-210004, lgort-39, Bwart-301 ,DMBTR-2593.12, SHKZA-S

Matnr-210004, lgort-39, Bwart-301 ,DMBTR-5186, SHKZA-S

Matnr-210004, lgort- blank, Bwart-301 ,DMBTR-5186, SHKZA-S

My Requirement :

in plant analysis i got difference value of the matnr :5.19

i saw in mseg table but it is stored as lgort as blank in mard the only one location 39 for particular material

how can i join the table,... is there any alternative table

1 ACCEPTED SOLUTION
Read only

former_member596005
Participant
0 Likes
1,167

hi Dhivya Gopal ,

You can join MARD and MSEG as follows,

MSEG-MJAHR = MARD-LFGJA
MSEG-MATNR = MARD-MATNR
MSEG-LGORT = MARD-LGORT
MSEG-WERKS = MARD-WERKS
4 REPLIES 4
Read only

former_member596005
Participant
0 Likes
1,168

hi Dhivya Gopal ,

You can join MARD and MSEG as follows,

MSEG-MJAHR = MARD-LFGJA
MSEG-MATNR = MARD-MATNR
MSEG-LGORT = MARD-LGORT
MSEG-WERKS = MARD-WERKS
Read only

0 Likes
1,167

Thanks for the query.. I have another case where mseg table contains dmbtr when storage location is empty... I have to take that entry from mseg where storage location is from mseg to sum it to valuated stock report along with the entries in mard...for a matnr.

And for the same matnr there is no empty storage location entry in mard to join it... please let me know how to get this entry along with mard...

Read only

0 Likes
1,167

Hi

Just checked one of my entries not matching for

MSEG-MJAHR = MARD-LFGJA
Please guide how to take records when this condition is not matched.

Read only

Former Member
0 Likes
1,167

Will check