Skip to Content
author's profile photo Former Member
Former Member

Comp. Backflush using Comp. Scrap(No BOM explosion(manual comp. entry))

Hi Friends,

*Component Backflush + MFBF Functionality:*

Go to MFBF --> Select the radio button COMPONENT BACKFLUSH --> and click on 
COMPONENT SCRAP (application toolbar).
Now select the radio button NO BOM EXPLOSION(manual comp. entry). 
Enter the Material Number and Production Version.

Now click on PROCESS COMPONENT LIST (application toolbar). 
Enter Material, Quantity, UOM, Storage Location, Reason Code and press ENTER. 
By default the movement type will be '551'.

Now when you click on SAVE button on the top. It will give you a material 
document number. 

I have created a new FM according to the standard component backflush functionality and called the BAPI BAPI_REPMANCONF1_CREATE_MTS in my Z FM. But the functionality of the standard BAPI is not giving expected results.

I would appreciate if someone who had gone thru the same situaton could help me. I have done my research in different ways. But ended up finding none. Is there any other BAPI or procedure to achieve the above scenario.

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Sep 29, 2011 at 04:28 AM

    How have you populated bflushflags & bflushdatagen & goodsmovements .Please share

    Kesav

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Keshav,

      Thanks for getting back to me.

      Below is how I populated the data.

      "I am not populating Backflush quantity and UOM because according to my 
      "standard MFBF functionality I have choose NO BOM EXPLOSION(manual comp. entry)
      FLAGS-BCKFLTYPE       = '12'.
      FLAGS-COMPONENTS_TYPE = '1'.
      GENDATA-POSTDATE    = SY-DATUM.
      GENDATA-DOCDATE      = SY-DATUM.
      GENDATA-MATERIALNR = MATERIAL.
      GENDATA-PRODPLANT   = PLANT.
      GENDATA-PRODVERSION   = VERSION.
      
      "Z_IMPORT_TABLES is the custom structure which I have declared at TABLES in FM
      "I_GOODS is of type BAPI2017_GM_ITEM_CREATE 
      LOOP AT Z_IMPORT_TABLES.
        WA_GOODS-MATERIAL    = Z_IMPORT_TABLES-MATERIAL.
        WA_GOODS-PLANT          = Z_IMPORT_TABLES-PLANT.
        WA_GOODS-STGE_LOC   = Z_IMPORT_TABLES-STGE_LOC.
        WA_GOODS-MOVE_TYPE = Z_IMPORT_TABLES-MOVE_TYPE.
        WA_GOODS-ENTRY_QNT = Z_IMPORT_TABLES-ENTRY_QNT.
        WA_GOODS-ENTRY_UOM = Z_IMPORT_TABLES-ENTRY_UOM.
        WA_GOODS-MOVE_REAS = Z_IMPORT_TABLES-MOVE_REAS.
       APPEND WA_GOODS TO I_GOODS.
      ENDLOOP.
      
      CALL FUNCTION 'BAPI_REPMANCONF1_CREATE_MTS'  
          EXPORTING
            BFLUSHFLAGS       = FLAGS
            BFLUSHDATAGEN  = GENDATA
          IMPORTING
            CONFIRMATION   = CONFIRMATION
            RETURN               = RETURN             ---------> error in this parameter
          TABLES
            GOODSMOVEMENTS = I_GOODS.
      

      When I execute this in debug mode, it is giving me an error in my RETURN parameter asking me to enter the backflush quantity and UOM which doesn't suits my scenario.

      Appreciate if you could let me know where I am doing wrong in my code and guide me in a better way to achieve this.

      Thanks.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.