Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8338

Submit statement to MB5B is not showing batch data - please help~

$
0
0

Dear forumers,

 

In my report codes, I will need to display the stock balance quantities along with the corresponding batch data.

 

For this, I have done the following:-

 

TYPES: BEGIN OF bestand,

         bwkey LIKE mbew-bwkey,

         werks LIKE mseg-werks,

         matnr LIKE mseg-matnr,

         charg LIKE mseg-charg,

         endmenge(09) TYPE p DECIMALS 3,

         anfmenge(09) TYPE p DECIMALS 3,

         meins LIKE mara-meins,

         endwert(09)          TYPE p    DECIMALS 2,

         anfwert(09)          TYPE p    DECIMALS 2,

         soll(09) TYPE p DECIMALS 3,

         haben(09) TYPE p DECIMALS 3,                              

         sollwert(09)         TYPE p    DECIMALS 2,         

         habenwert(09)        TYPE p    DECIMALS 2,        

         waers LIKE t001-waers,

         sort_criteria(52) TYPE c,

      END OF bestand.

 

 

DATA: gt_bestand TYPE STANDARD TABLE OF bestand.

 

 

  "Get Stock Closing Value from MB5B

  SUBMIT rm07mlbd WITH matnr    IN s_matnr

                  WITH werks    IN ls_werks

                  WITH datum    IN s_datum

                  WITH lgbst    EQ 'X'

                  WITH bwbst    EQ ''

                  WITH sbbst    EQ ''

                  WITH pa_sumfl EQ 'X'

                  EXPORTING LIST TO MEMORY AND RETURN.

 

 

  IMPORT bestand TO gt_bestand FROM MEMORY ID 'MB5B_RESULT'.

From the IMPORT statement above, I am able to see all the relevant data fields that have been populated from MB5B.

 

However, in all my tests, all of the batch data is always missing.

Is there something that I may have missed out in my codes?

 

Please help. Appreciate any inputs at all.

 

Many thanks.

 

 

Regards,

Deborah


Viewing all articles
Browse latest Browse all 8338


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>