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.
Showing results for 
Search instead for 
Did you mean: 

Is it possible to do 'BAPI_GOODSMVT_CREATE' with ENTRY_QNT < 0.001

0 Kudos

Hi, experts.
Is it possible to do 'BAPI_GOODSMVT_CREATE' with ENTRY_QNT < 0.001?


Active Contributor
0 Kudos

Hi @shiz0frenik 

No, it is not - MM manages quantity with 3 decimal points.

Best regards

Dominik Tylczynski

0 Kudos

And 0.000 impossible too?

0 Kudos

0.000 is still three decimal points, is it not? I guess you could post a material movement with 0 quantity for value only managed materials.

0 Kudos

I'm hetting an 'E' type message at 'MB_CHECK_INPUT' inside.

      IF i_mseg-erfmg IS INITIAL AND i_mseg-kzear IS INITIAL AND
         i_mseg-exvkw IS INITIAL AND xcanc IS INITIAL.          "1296492
        IF NOT i_mseg-rsnum IS INITIAL AND                      "1424150
           NOT i_mseg-rspos IS INITIAL.                         "1424150
          SELECT SINGLE kzear FROM resb INTO rs_kzear           "1417681
            WHERE rsnum = i_mseg-rsnum AND rspos = i_mseg-rspos "1417681
            AND   rsart = i_mseg-rsart.                         "1417681
          IF sy-subrc = 0 AND rs_kzear = i_mseg-kzear.          "1417681
            MESSAGE e264.
          ENDIF.                                                "1417681
        ELSE.                                                   "1424150
          MESSAGE e264.                                         "1424150
        ENDIF.                                                  "1424150

I think i should fill   AMOUNT_SV  at goodsmvt_item  which lately assignes to 

I_MSEG-EXVKW, but don't understand which value i need to put here

0 Kudos

What is that what you really want to achieve?

0 Kudos

I want to post a material with 'BAPI_GOODSMVT_CREATE' with  ENTRY_QNT = 0.000

0 Kudos

You can't do that for quantity valued materials. Is your material value managed only?

If you need to update only the value of a quantity and value managed material, use BAPI_MATVAL_DEBIT_CREDIT