Batchinput for transaction MB1A

Hi,
I have a report, which is selecting material data from table LQUA (transaction ls24).
After that I´m building a batchinput to call transaction mb1a and book all found data from lqua.
Normally, I have pressed the menu-button "to order..." and then I filled in the found data, like material and amount, and book it with the save-button.
The problem is, when I do it that way, I got the charge-numbers automatically from the SAP-System (and the input field for the charge is grey, so I can´t enter anything).
When I build my batchinput, the entries are often in an different order. So it´s distorted, when it fills in the data on mb1a.
After that, I tried to book the values about batchinput for mb1a in a different way. I pressed enter on the first screen, and then I could enter the whole lines (also the charge numbers), but when I book it then, it is not deleting the reservation data for the material...
So can anybody tell me, how I can build up the batch input for mb1a, that the data is in the right order, and the material/amount values fit to the right charge?
I hope, it´s possible to understand my problem.
Cheers
Message was edited by: Arne Hein

Thanks for the fast answer!
The problem is, I have to compare the values in the charge field, SAP gives me, with the values in my internal table and fill in the right data for the right charge. How can I do that?
Do I have to read it while building my bdc? The problem is, I have to sort the internal table in the right order, that my material and amount values fit to the right charge in mb1a.
Thank you

Similar Messages

  • User exit for transaction MB1A

    Hi ....
    Can anybody help me out to find the User Exit For MB1A Transaction ...?

    Hi,
    Following BADI's are available in MB1A.
    ALV_SWITCH_GRID_LIST                            ALV: Customer Exit for Switch Grid to List
    FAGL_PERIOD_CHECK                            Posting Period Check
    MB_CHECK_LINE_BADI                            BAdI: Check Line Before Copying to the Blocking Tables
    MB_CIN_MM07MFB7                            BAdI for India Version exit in include MM07MFB7
    MB_CIN_MM07MFB7_QTY                           Proposal of quantity from Excise invoice in GR
    MB_DOCUMENT_BADI                           BAdIs During Creation of a Material Document
    MB_DOCUMENT_BADI_SAP      BADI for Creation and Changing of a Material Document
    MB_DOCUMENT_BADI_SAP      BADI for Creation and Changing of a Material Document
    MB_DOC_BADI_INTERNAL      BAdIs During Creation of a Material Document (SAP Internal)
    MB_ME_CSGMT_BADI_SAP      BAdI: Consignment Processing - Stock Transfer
    MB_QUAN_CHECK_BADI                           BAdI: Item Data at Time of Quantity Check
    MB_STOR_LOC_BADI_GTS     BADI to Check and Change Storage Location (GTS Fct. Only)
    ME_DP_CLEARING                          Clearing (Offsetting) of Down Payments and Payment Requests
    VB_SLED_MANAGEMENT                          Control of Shelf Life Expiration Date Processing
    W_RETAILSYSTEM_IDENT      Identification of the System Configuration 'SAP Retail'
    and below customer exit
    MBCF0005     Material document item for goods receipt/issue slip
    MBCF0007     Customer function exit: Updating a reservation
    MBCF0010     Customer exit: Create reservation BAPI_RESERVATION_CREATE1
    MBCF0011     Read from RESB and RKPF for print list in  MB26
    MB_CF001     Customer Function Exit in the Case of Updating a Mat. Doc.
    STATTEXT     Modification exit for formatting status text lines
    PPCO0009     Enhancement in goods movements for prod. process order
    IQSM0007     Serial numbers, user exit for goods movements
    MWMTR001     Exits at the end of transfer rqmnt creation (IM,PP interf.)
    MCB10001     BCO: Statistics update of material movements and inventory
    MGA00003     Material Master (Industry and Retail): Number Display
    MGA00003     Material Master (Industry and Retail): Number Display
    QAAT0001     Inspection type determination different from variant 01
    QAAT0002     Control of acceptance lots/goods receipt
    QPL10007     QM: Inspection lot creation - change QM order type
    SAPLMHD1     Shelf life expiration date
    WBWE0001     Function exits for valuation for structured materials
    MBCF0002     Customer function exit: Segment text in material doc. item
    MBCFC003     Maintenance of batch master data for goods movements
    MBCFC004     Maintenance of batch specifications for goods movements
    MBCF0006     Customer function for WBS element
    MBCF0009     Filling the storage location field
    MBCFC010     Propose batch number on Inventory Management item screen
    Check which one is suitable for you. If BADI then implement in se19 and for customerexit in CMOD.
    Thanks

  • Userexit/badi for tcode MB1A

    Hi,
    I am currently looking for a userexit or BADI for transaction MB1A for me to modify/delete the accounting documents document created by this transaction.
    Thanks!

    The below are the available user exits for MB1A.
    MBCF0002            Customer function exit: Segment text in material doc. item
    MBCF0005            Material document item for goods receipt/issue slip
    MBCF0006            Customer function for WBS element
    MBCF0007            Customer function exit: Updating a reservation
    MBCF0009            Filling the storage location field
    MBCF0010            Customer exit: Create reservation  
                                BAPI_RESERVATION_CREATE1
    MBCF0011            Read from RESB and RKPF for print list in  MB26
    MB_CF001            Customer Function Exit in the Case of Updating a Mat. Doc.
    To check for the suitable badi, Go to transaction SE24 and give the Object type as CL_EXITHANDLER and click on Display button.
    Double click on method GET_INSTANCE, put a break point on case statement.
    Execute your transaction and look for variable EXIT_NAME at your scenario then It will show the available badi's.
    Reward if it is useful.
    Thanks,
    Srinivas

  • BDC For Transaction MB1C

    Hi all
    i want bdc program and flat file structure for transaction MB1C to upload stock.
    If anyone have then please send me at [email protected]
    Its urgent.
    Thanks

    Hi
    use the BAPI
    BAPI_GOODSMVT_CREATE
    see the code:
    REPORT ZRICH_0001 .
    Structures for BAPI
    DATA: GM_HEADER  TYPE BAPI2017_GM_HEAD_01.
    DATA: GM_CODE    TYPE BAPI2017_GM_CODE.
    DATA: GM_HEADRET TYPE BAPI2017_GM_HEAD_RET.
    DATA: GM_ITEM    TYPE TABLE OF
                     BAPI2017_GM_ITEM_CREATE WITH HEADER LINE.
    DATA: GM_RETURN  TYPE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    DATA: GM_RETMTD  TYPE BAPI2017_GM_HEAD_RET-MAT_DOC.
    CLEAR: GM_RETURN, GM_RETMTD. REFRESH GM_RETURN.
    Setup BAPI header data.
    GM_HEADER-PSTNG_DATE = SY-DATUM.
    GM_HEADER-DOC_DATE   = SY-DATUM.
    GM_CODE-GM_CODE      = '04'.                                " MB1A
    Write 971 movement to table
    CLEAR GM_ITEM.
    MOVE '412'                 TO GM_ITEM-MOVE_TYPE     .
    MOVE 'Q'                 TO GM_ITEM-SPEC_STOCK.
    MOVE '3800533484'  TO GM_ITEM-MATERIAL.
    MOVE '1'     TO GM_ITEM-ENTRY_QNT.
    *MOVE 'PC'    TO GM_ITEM-ENTRY_UOM.
    MOVE '1060'  TO GM_ITEM-PLANT.
    MOVE '0007'  TO GM_ITEM-STGE_LOC.
    *MOVE '0901'   TO GM_ITEM-MOVE_REAS.
    MOVE 'P203601001' TO GM_ITEM-WBS_ELEM.
    MOVE 'P203601001' TO GM_ITEM-VAL_WBS_ELEM.
    APPEND GM_ITEM.
    Call goods movement BAPI
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
         EXPORTING
              GOODSMVT_HEADER  = GM_HEADER
              GOODSMVT_CODE    = GM_CODE
         IMPORTING
              GOODSMVT_HEADRET = GM_HEADRET
              MATERIALDOCUMENT = GM_RETMTD
         TABLES
              GOODSMVT_ITEM    = GM_ITEM
              RETURN           = GM_RETURN.
    IF NOT GM_RETMTD IS INITIAL.
      COMMIT WORK AND WAIT.
      CALL FUNCTION 'DEQUEUE_ALL'.
    ELSE.
      COMMIT WORK AND WAIT.
      CALL FUNCTION 'DEQUEUE_ALL'.
    ENDIF.
    WRITE:/ GM_RETMTD.
    LOOP AT GM_RETURN.
      WRITE:/ GM_RETURN.
    ENDLOOP.
    Reward points if useful
    Regards
    Anji

  • Transaction key UMB determined on transaction MB1A

    Hi experts, I'm having a problem with a goods movement via transaction MB1A. When trying to move material, an error message is displayed with the information that the account does not exist in the chart of accounts. The account in question is configured for UMB operation, but the material has no ledger activated and had no price change for the transaction MR21.
    What can be happening?
    Many thanks.
    Diego.

    Although the period 05/2014 is already open, the posting date of the document was still in 04/2014. The document was created with various materials, but only one pointed to the UMB. Today, with the posting date of the period 05/2014, the problem did not happen anymore.
    Thanks for everyone.

  • Problems with the batch in transaction MB1A and MB21

    Hi everybody, I am new in the MM module. I am having a problem with transaction MB1A and MB21, when i try to select a batch for the movement 901. if i click the match code for the material's batch, the system shows me all the batches for the material, but some of these batches don't have available quantity stock and order creates the reservation or the material output. The system dont allow negative stock. Do you have any idea of this problem? Regards.

    Hi,
    In IM, when you select a batch with possibile entries, system always shows the available batches no matter whether stock is there are not.
    However, if you setup batch determination strategy for example, when you are processing in MB1A, SAP fills the batch based on the criterion you define in:
    MBC1Logistics -->Materials Management -->Inventory Management -->Environment -->Batch Search Strategy -->MBC1 - Create
    Select appropriate strategy (if defined in your system, say for mvt ty)
    maintain search strategy and sort criteria for your movement type here.
    Hope this helps!

  • Copy Control for Transaction Types

    Hi,
    Was wondering if someone could help on following topic. We need to specify the possibility of copy control (follow-up) for certain transaction types in CRM 6.0. I've specified the source TT (ZAPP) and the target TT (ZCON) in customizing activity : Define Copying Control for Transaction Types.
    ZAPP = Custom Appointment Activity
    ZCON = Custom Opportunity
    Now, when I want to create a follow-up for ZAPP in the WebUI (via dropdown 'More' and action 'Follow-Up'), I always get an extensive list of transaction types (about 30) rather than only the opportunity that I originally specified. Any ideas?
    Thank you,
    Sebastiaan.

    Hi Kai,
    Many thanks for your answer. Indeed, the COPY_DOCUMENT is a very good alternative as it also directs the flow for follow-up. However, I have a question in regards to using this method. I can see that there are parameters that need to be provided (like PROCESS_TYPE etc) but apart from that is it also possible to change fields in the copied document.
    e.g. Currently the description of the copied document gathers the description of the action definition, but how can you pass the description of the previous document for instance? Is this also done via the actual parameters?
    Thank you,
    Sebastiaan.

  • BDC is not working in background for Transaction COR6N

    Hi ,
       We have written the BDC program for transaction COR6N. BDC works perfectly in foreground but it's not working for background option.
        SELECT SINGLE AUFPL INTO W_AUFPL FROM AFKO
                  WHERE AUFNR = W_AUFNR.
        SELECT AUFPL VORNR INTO TABLE IT_PHASE FROM AFVC
                WHERE AUFPL = W_AUFPL
                  AND PHFLG = 'X'.
        LOOP AT IT_PHASE.
        WA_BDCDATA-PROGRAM  = 'SAPLCORU_S'.
        WA_BDCDATA-DYNPRO   = '0100'.
        WA_BDCDATA-DYNBEGIN = 'X'.
        APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-FNAM     = 'AFRUD-AUFNR'.
        WA_BDCDATA-FVAL     = W_AUFNR.
        APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-FNAM     = 'AFRUD-VORNR'.
        WA_BDCDATA-FVAL     = IT_PHASE-VORNR.
        APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-FNAM     = 'BDC_OKCODE'.
        WA_BDCDATA-FVAL     = '/00'.
        APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-PROGRAM  = 'SAPLCORU_S'.
        WA_BDCDATA-DYNPRO   = '0100'.
        WA_BDCDATA-DYNBEGIN = 'X'.
        APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-FNAM     = 'AFRUD-LMNGA'.
        WA_BDCDATA-FVAL     = w_qty. "'60'.
        APPEND WA_BDCDATA TO BDCDATA.
       CLEAR WA_BDCDATA.
       WA_BDCDATA-FNAM     = 'AFRUD-BUDAT'.
       WA_BDCDATA-FVAL     = w_date. "'31.12.2008'.
       APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-FNAM     = 'BDC_OKCODE'.
        WA_BDCDATA-FVAL     = '=BU'.
        APPEND WA_BDCDATA TO BDCDATA.
        clear X_OPTIONS.
        X_OPTIONS-DISMODE = 'N'.  ' works perfectly for 'A'
        X_OPTIONS-UPDMODE = 'S'.
        X_OPTIONS-CATTMODE = ' '.
        X_OPTIONS-DEFSIZE = ' '.
        X_OPTIONS-RACOMMIT = ' '.
        X_OPTIONS-NOBINPT = 'X'.
        X_OPTIONS-NOBIEND = ' '.
        CALL TRANSACTION 'COR6N'  USING BDCDATA  OPTIONS FROM X_OPTIONS
                           MESSAGES INTO ITAB.
                     MODE 'N'  MESSAGES INTO ITAB UPDATE 'S'.
       WAIT UP TO 3 SECONDS.
        COMMIT WORK AND WAIT.
        CLEAR:BDCDATA[],WA_BDCDATA.

    HI,
    COR6N is the Enjoy Transaction and sap does not suggest to write the BDC on these transaction as most of these transaction uses the GUI elements foe better display and which cannot be recorded while processing the BDC in back ground.
    Check for the Normal transaction and write the BDC for it.
    Or
    Pass X to Rcommit flag in the CTU_PARAMS option and check.

  • Dunning Letter for transaction F150

    Hi,
    I have developed a dunning letter , level 2 for transaction F150.
    As per the requirement it should display the balance in the beging rather than in last (as it was before)
    so I coped the print program and did some changes and Assigned that program to my sap script....
    but when i am going in debugging....
    it is taking the old program only...
    Anybody having any idea where to configure my new program??
    Thanks and Best Regards.
    Kusum.

    Hi Dubey,
    You can check the following customizing settings :
    Define Dunning Forms (with SAP Forms)
    We Require some standard u201CSPROu201D settings  :
    The standard settings allow us to create dunning notices using SAP Smart Forms, we must first define the corresponding function module in u201CSPROu201D.
    1. Financial Accounting (New) Financial Accounting Global Settings ( New )  -->Business Transaction Events.
    The SAP Business Framework screen appears.
    2. Choose Settings -> P/S function modules -> ... of an SAP appl. .
        Continue..
    3. Under the Business Transaction Event (BTE) "1720" with application indicator FI-FI, change the function module name and save your entries.
    Standard settings in u201CSPROu201D
    Financial Accounting (New)--> Accounts Receivable and Accounts Payable -->Business Transactions --> Dunning --> Printout ->Assign dunning forms.
    Select u2018Dunning Procedureu2019 and choose u2018Forms for normal dunning procedureu2019
    Choose u2018Company Codeu2019
    Change the name of your dunning form
    I thought, it will work for your requirement.
    Thanks
    Raghava Vakada

  • User Exit For Transaction F150 (Dunning)

    Hi All,
    Can any one help me in finding a User Exit for Transaction <b>F150</b> (Dunning).

    Hello,
    Try this one
    F150D001
    Bye
    gabriel

  • Cancel a SD invoice error message "no authorization for transaction FB08"

    Hi Gurus,
    I am trying to cancel a SD invoice and am receiving the error message " no authorization for transaction FB08" is coming. Never has this happened in past, i have checked all the security authorizations also and they are in place. Accounting document status is showing as not cleared. Also, as per my understanding cancellation of invoice happens through VF11 which does not calls FB08. Please point out reasons as to why this could be happening and the possible solution thereof.
    regards
    Anmol Pareek

    Hi Anmol
    Once you got the error screen, immediately after that goto T code SU53 and expand all link. Take the screen shot and send it to your BASIS team to provide you proper access.
    Yes you are correct cancellation is done through VF11 but sometime some programs internally calls other T codes.
    take help of your basis team.

  • BackGround Job for Transaction VF06

    Hi Experts,
    We are having problems with the background Job for transaction VF06. We run this job every day except weekends but this job runs and takes only 0 sec without creating Invoices.
    Allthough running this transaction Manually creates Invoice with same variant.
    Kindly help me on this.
    Thanks and Regards,
    Neha Kapoor

    Hi,
    I have the seen the Log it tells:
    Date       Time     Message text                                                                 Message class Message no. Message type
    29.06.2008 22:00:48 Job started                                                                       00           516          S
    29.06.2008 22:00:48 Step 001 started (program RV60SBAT, variant SOIE AUTO BILL, user ID GGBATCH)      00           550          S
    29.06.2008 22:00:48 Job finished                                                                      00           517          S
    But Invoices are not getting created.
    Thanks and Regards,
    Neha Kapoor

  • Problem with submit report for transaction LT23

    Hi,
    I want to submit report for transaction LT23 based on the double click on a field in the output of my report. I am using selection table to pass values. The problem is I have  something called dynamic selections. I am using some selection fields from the dynamic selection option. Can anyone tell me how do I pass the values in such a case?

    In your [submit|http://help.sap.com/abapdocu/en/ABAPSUBMIT.htm] statement in the [selection screen parameters|http://help.sap.com/abapdocu/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm] use the [WITH FREE SELECTIONS|http://help.sap.com/abapdocu/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm#!ABAP_ADDITION_5@5@] option to pass dynamic selections
    NB: Use FREE_SELECTIONS_RANGE_2_EX to build the correct parameter texpr.
    Regards
    Raymond

  • How to schedule a job for transaction CG36, incl. variant?

    Hi all,
    When you enter transaction CG36, you need to select a User Exist (EHS_DXSDB). After that you need to define a file path.
    I would like to schedule a job for transaction: CG36 > Define User Exit: EHS_DXSDB (Import Dok-X material Safety Data Sheets) > and define a path. With transaction SE93, I found program name: RC1RIMPS (program is allowed to be job scheduled), only I can't create a Variant (to define the user exit and file path, no selectionscreen), how to create a variant?
    The following programs can't be scheduled either (as they are not of type 1 or J):
    SAPLC131
    SAPLC1EO
    SAPLC3G
    Thank you in advance!
    Kind regards,
    Roy Derks

    Hello Roy
    I am sorry. To my knowledge up to ECC 6.0 Enhancement Pack 4 there is no SAP EH&S process available there you can do what you are requesting. The "problem" is that you need to "answer" the user dialog. Therefore you can not generate/prepare a variant which could be processed as a job according to my knowledge.
    Therefore in my opinion you have this option only: prepare a copy of the transaction (or only the report) using either "Z" or "Y (customer reports). Then you need to exclude some line in the code (which gives rise to the user dialog) and prepare some customer specific coding so that the resulting report can be used in such a way that a variant is possible, but you must make sure that the process later (the real upload process) is processed too in this "job" queue. IN any case: you need to check the log of the report and this must be done by an user. Therefore an automatic process does have some "risks"
    The topic of import of reports is used in most cases during a set up of EH&S, because of mergers/acustions but not in the daily work with EH&S and there I believe that SAP does not support this demand.
    With best regards
    C.B.

  • How to add column in table control for transaction APPCREATE

    Hi All,
    How can i add the additional column in table control for transaction APPCREATE.
    There is structure PT1045_EXT present behind table control. But not found any customer exit or badi to display on screen.
    Please help...

    You can add new columns
    If you add new columns in tr. PHAP_CATALOG

Maybe you are looking for

  • NativeGetNewTLA OOM on Weblogic 10.3.2

    All Need help in fixing nativeGetNewTLA OOM error on weblogic 10.3.2. This can be reproduced by querying data from Database(Oracle 11). Below is the stacktrace Any help is highly appreciated Thanks ####<Jul 15, 2010 4:11:15 PM EDT> <Error> <Cluster>

  • HELP! SAP Execute Delete Archiving Session failure

    Dear All, Could anyone give me opinions on SAP problems? When we archived object u201CFI_documntu201D, delete a u201CFilesu201D in tcode u201CSARAu201D, the AIX file system u201C/Oarcle/R3P/oraarchu201D was full, SAP and database have stopped, one ar

  • Can't see created Software Component in CMS

    Hi I have created a software component in the SLD (NW 2004s SP2). Now i want to develop it. But when i try to add this software component to my track in the CMS, i can't find it. I suggested in an another forum post, i try to push the "refresh" butto

  • Coax-OUT with Digital I/O-Modul doesn't w

    Hallo, i've got big problems with my X-Fi. I bought a cable for the digital connection to my amplifier with integrated D/A-Board.(http://www.advance-acoustic.com/en-product.php?id=25) This is how the driver looks: http://img248.imageshack.us/my.php?i

  • 'Today' search in finder doesn't show everything

    I've been trying to get a printer driver to work for a Lexmark Z605. When I run the installer I've downloaded from Lexmark it installs a load of files (lots of names pass quickly along with a progress bar) and I've been trying to work out where it pu