VBAK fields

Hi
Is it possible that some of the fields you can find it in VBAK (SAP tables) but not listed in Sales document header leavel( at document level). Why becuase today i was not able to find Risk category field in Sales order header level where as i am able to find risk category VBAK-CTLPC. Pl let me know how it can be possible and how this field gets updated in the table.
If you can find the filed in SO level then i need to check  my four eyes once again for testing.:)-
Reg
Shankar1242

There are some fields in almost all the tables which are not displayed on the screen/forms [Example VBAK-CTLPC]. Such table fields are updated by the program using the <b>Master/Configuration data set in Credit Management</b>
Apart from Risk Category field, some other fields like:
VBAK-KKBER - Credit control area
VBAK-KNKLI - Customer's account number with credit limit reference
VBAK-GRUPP - Customer Credit Group
are also update via the program only.
The update statements can be found in the INCLUDE <b><FV45KF0K_KREDIT_KOPFDATEN_SETZ></b>
Using the help of an ABAPer one can put a break point here and trace exactly how the fields are updated.
Regards,
Gauravjit
Reward points if the solution is helpful

Similar Messages

  • Information about a VBAP, VBAK field...

    Hello Experts-
    I am working with a scenario where customer orders (sales transaction) are generated in a mySAP CRM 4.0 SP 3 system and are replicated to SAP R/3 Enterprise as sales orders.
    Are any of you aware of a field in VBAK and/or VBAP in R/3 that keeps track of the document identifier from the CRM system?
    Ideally, I need to be able to reconcile, at the line level, what object an entry in VBAP corresponds to an object identifier from the CRM system.
    If not, it will be helpful, at the header level, to know which entry in VBAK corresponds to an object identifier from the CRM system.
    I would appreciate your help.
    Thank you,
    - Vik.

    Hi Vik,
    I have not had this scenario before, but try the following fields on VBAP:
    VBELV May be your CRM reference Header
    POSNV May be your CRM reference Item
    VGBEL May be your CRM reference Header
    VGPOS May be your CRM reference Item
    Also have a look at the table VBFA (document flow) where:
    VBELN is your sales order number
    POSNN is your sales order item
    VBELV may be your CRM reference header
    POSNV may be your CRM reference item
    Cheers,
    Brad

  • Filling custom VBAK field in user exit EXIT_SAPLVEDA_001

    Hai Experts,
    I created code and activated the user exit EXIT_SAPLVEDA_001.
    Via an iDoc i want to fill a custom field which is in VBAK.
    EXIT_SAPLVEDA_001 has an changing parameter type dxvbak, after user exit is triggered for the right segment, the custom field is not update in the database tabels!.
    Do i need to take further action?!
    Code below
    *&  Include           ZXVEDU03
    DATA: BEGIN OF lw_dxvbak.                  "Kopfdaten
            INCLUDE STRUCTURE vbak.
    DATA:  bstkd LIKE vbkd-bstkd.
    *DATA:  KURSK(8)   TYPE C.
    DATA:  kursk LIKE vbkd-kursk.          "Währungskurs
    DATA:  zterm LIKE vbkd-zterm.          "Zahlungsbedingungsschlüssel
    DATA:  inco1 LIKE vbkd-inco1.          "Incoterms Teil 1
    DATA:  inco2 LIKE vbkd-inco2.          "Incoterms Teil 2
    DATA:  prsdt LIKE vbkd-prsdt.          "Datum für Preisfindung
    DATA:  angbt LIKE vbak-vbeln.          "Angebotsnummer Lieferant (SAP)
    DATA:  contk LIKE vbak-vbeln.          "Kontraknummer Lieferant (SAP)
    DATA:  kzazu LIKE vbkd-kzazu.          "Kz. Auftragszusammenführung
    DATA:  fkdat LIKE vbkd-fkdat.          "Datum Faktura-/Rechnungsindex
    DATA:  fbuda LIKE vbkd-fbuda.          "Datum der Leistungserstellung
    DATA:  empst LIKE vbkd-empst.          "Empfangsstelle
    DATA:  valdt LIKE vbkd-valdt.          "Valuta-Fix Datum
    DATA:  kdkg1 LIKE vbkd-kdkg1.          "Kunden Konditionsgruppe 1
    DATA:  kdkg2 LIKE vbkd-kdkg2.          "Kunden Konditionsgruppe 2
    DATA:  kdkg3 LIKE vbkd-kdkg3.          "Kunden Konditionsgruppe 3
    DATA:  kdkg4 LIKE vbkd-kdkg4.          "Kunden Konditionsgruppe 4
    DATA:  kdkg5 LIKE vbkd-kdkg5.          "Kunden Konditionsgruppe 5
    DATA:  delco LIKE vbkd-delco.          "vereinbarte Lieferzeit
    DATA:  abtnr LIKE vbkd-abtnr.          "Abteilungsnummmer
    DATA:  dwerk LIKE rv45a-dwerk.         "disponierendes Werk
    DATA:  angbt_ref LIKE vbkd-bstkd.      "Angebotsnummer Kunde (SAP)
    DATA:  contk_ref LIKE vbkd-bstkd.      "Kontraknummer Kunde  (SAP)
    DATA:  currdec LIKE tcurx-currdec.     "Dezimalstellen Währung
    DATA:  bstkd_e LIKE vbkd-bstkd_e.      "Bestellnummer Warenempfänger
    DATA:  bstdk_e LIKE vbkd-bstdk_e.      "Bestelldatum Warenempfänger
    DATA: END OF lw_dxvbak.
    CASE segment-segnam.
      WHEN 'ZE1EDK18' . " Name of customer segment
        MOVE segment-sdata TO ze1edk18.
        lw_dxvbak-zkostl = ze1edk18-zkostl.
        MOVE lw_dxvbak TO dxvbak.
    ENDCASE.
    Edited by: Richard van Veen on Mar 9, 2011 1:43 PM

    Filled dxbdcdata with following values!
    DATA lw_dxbdcdata LIKE LINE OF dxbdcdata.
    CASE segment-segnam.
      WHEN 'ZE1EDK18' . " Name of customer segment
        MOVE segment-sdata TO ze1edk18. " Data receives structure
        lw_dxvbak-zkostl = ze1edk18-zkostl. " Copy to application table
        MOVE lw_dxvbak TO dxvbak.
        lw_dxbdcdata-program = 'SAPMV45A'.
        lw_dxbdcdata-dynpro = '0101'.
        lw_dxbdcdata-dynbegin = 'X'.
        lw_dxbdcdata-fnam = 'ZKOSTL'.
        lw_dxbdcdata-fval = ze1edk18-zkostl.
        append lw_dxbdcdata to dxbdcdata.
    ENDCASE.

  • How to I link Slaes Orders and Price Assurances - Table VBAK Field AUART

    Hello,
    Using T-code VA43 I can enter a contract number (we call it a Price Assurance#) and then I can see the information I need 1 for one.  I can also pull this info out of the VBAK and VBAP tables using the doc type ZQ in the field AUART.  What I am trying to do is link all of these document types to their sales orders, AUART=TA, and then finally link them to the invoices but I am having trouble doing it.  Can someone help me figure out how to link the sales documents types ZQ to their corresponsing TA types?  From there I can link the billing documents to them.
    Thanks,
    Sean

    Hi Sean,
    As per my understanding of your question is about copy controls,where you copied the standard quantity contract type CQ and
    named it as ZQ,now you want to link it up with order type TA(Standard Order),for this you need to maintain copy controls
    between your contract and order.Use T.code VTAA select your contract type and sale order type maintain copy controls *(copy
    standard CQ - TA and rename it as per your document type) the you need to maintain copy controls between TA to LF use
    T.code VTLA the delivery to invoice use T.code VTFL.
    Search in Forum or Google for better understanding of copy controls.
    Regards
    Ram

  • Blank value in field VBAK-XBLNR after using bapi_customerreturn_create.

    Hi All,
    I am using BAPI bapi_customerreturn_create for return order creation. I am passing the required details where header includes the invoice number as reference doc ( REF_DOC) which gets updated in table VBAK field XBLNR.
    But after execution of BAPI , For few return orders I do not see the XBLNR value updated in VBAK where as the invoice is maintained against all the deliveries for these orders.
    Can any one tell me if there is any logic or condition which do not allow XBLNR update? Please help me if anybody has come across the issue.
    Thanks,
    Rupali

    Hi Rupali,
    RETURN_HEADER_IN-REF_DOC_L is the correct field to update VBAK-XBLNR. Use this field and VBAK-XBLNR will update always.
    I verified that it is mapped to VBAK-XBLNR in the BAPI before answering you. RETURN_HEADER_IN-REF_DOC doesn't go to XBLRN that is for sure.
    The return orders where it is filling the XBLNR field in your production system are possibly pulling it from the parent Sales order or Billing document against which they were created. Some of those documents may be having it while others may be missing it, which explains why it is filled in some cases while others it is not.
    Best regards,
    Vishnu

  • How to enhance SD (0DOC_NUMBER) with Field BNAME (T: VBAK), BSTKD (T: VBKD)

    Hi Gurus,
    I need the following data to 0DOC_NUMBER
    Field: BNAME / ERP Table: VBAK
    Field: BSTKD / ERP Table: VBKD
    - It is a 1:1 relationship
    - both fields are available in the 2lis_11_vaitm
    - fields are "free text" in ERP (used for additional information to customer order)
    How can I bring these data to sd? It's not a keyfigure, it's not master data. I think both are "only attribute" for 0DOC_NUMBER? Is that correct? I'm able to enhance the 0DOC_NUMBER with two "only attribute" attributes. But how can I bring the data into BW?
    Or is this the wrong was? Hope you can help me.
    Thanks and best regards.
    Feli

    I searched the whole day yesterday and I searched the whole morning. But I'm not able to find an answer for my question. I know how to load normal transactional data and I know how to load master data. But I never enhanced master data which were filled by an transactional data source.
    Could you give me a hint, how to do this?
    Thanks.

  • Screen Exit - add new field (VBAK-VBELN)  in VC01N

    hi friends,
    how to add new field (VBAK-VBELN) in VC01N tcode
    Tcode: VC01N Sales Activity
    Table: VBKA
    Field: VBELN
    Requirement: New field in screen ( VC01N )
    Description:
    Prospective projects are to be linked to the sales activities whenever they are created. 
    Prospective Project VA12
    Table: VBAK
    Field: VBELN
    Doc Type: ZPRO
    Doc Category: A
    Place the new field VBAK-VBELN under the u2018Commentu2019n in the VC01N.
    urgent plz reply
    thanks and regards
    Poorna
    Edited by: poornambika sivaramakrishnan on Nov 21, 2008 11:28 AM

    Hi...
    You can definitely do it...provided if screen exit is there ...
    Below is the program to find the exit whether present or not in your transaction,
    Just give your tcode in the program , it will show all the exits in your transaction.
    Regards
    RachelArun
    TABLES : tstc, "SAP Transaction Codes
    tadir, "Directory of Repository Objects
    modsapt, "SAP Enhancements - Short Texts
    modact, "Modifications
    trdir, "System table TRDIR
    tfdir, "Function Module
    enlfdir, "Additional Attributes for Function Modules
    tstct. "Transaction Code Texts
    *& Variables
    DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
    DATA : field1(30).
    DATA : v_devclass LIKE tadir-devclass.
    *& Selection Screen Parameters
    SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP.
    PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK a01.
    *& Start of main program
    START-OF-SELECTION.
    u2022     Validate Transaction Code
    SELECT SINGLE * FROM tstc
    WHERE tcode EQ p_tcode.
    u2022     Find Repository Objects for transaction code
    IF sy-subrc EQ 0.
    SELECT SINGLE * FROM tadir
    WHERE pgmid = 'R3TR'
    AND object = 'PROG'
    AND obj_name = tstc-pgmna.
    MOVE : tadir-devclass TO v_devclass.
    IF sy-subrc NE 0.
    SELECT SINGLE * FROM trdir
    WHERE name = tstc-pgmna.
    IF trdir-subc EQ 'F'.
    SELECT SINGLE * FROM tfdir
    WHERE pname = tstc-pgmna.
    SELECT SINGLE * FROM enlfdir
    WHERE funcname = tfdir-funcname.
    SELECT SINGLE * FROM tadir
    WHERE pgmid = 'R3TR'
    AND object = 'FUGR'
    AND obj_name = enlfdir-area.
    MOVE : tadir-devclass TO v_devclass.
    ENDIF.
    ENDIF.
    u2022     Find SAP Modifactions
    SELECT * FROM tadir
    INTO TABLE jtab
    WHERE pgmid = 'R3TR'
    AND object = 'SMOD'
    AND devclass = v_devclass.
    SELECT SINGLE * FROM tstct
    WHERE sprsl EQ sy-langu
    AND tcode EQ p_tcode.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) p_tcode,
    45(50) tstct-ttext.
    SKIP.
    IF NOT jtab[] IS INITIAL.
    WRITE:/(95) sy-uline.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 sy-vline,
    2 'Exit Name',
    21 sy-vline ,
    22 'Description',
    95 sy-vline.
    WRITE:/(95) sy-uline.
    LOOP AT jtab.
    SELECT SINGLE * FROM modsapt
    WHERE sprsl = sy-langu AND
    name = jtab-obj_name.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    WRITE:/1 sy-vline,
    2 jtab-obj_name HOTSPOT ON,
    21 sy-vline ,
    22 modsapt-modtext,
    95 sy-vline.
    ENDLOOP.
    WRITE:/(95) sy-uline.
    DESCRIBE TABLE jtab.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No of Exits:' , sy-tfill.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(95) 'No User Exit exists'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(95) 'Transaction Code Does Not Exist'.
    ENDIF.
    u2022     Take the user to SMOD for the Exit that was selected.
    AT LINE-SELECTION.
    GET CURSOR FIELD field1.
    CHECK field1(4) EQ 'JTAB'.
    SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.

  • Develop a form and print program using VBAP, VBAK, MRKT.

    I have 2 tables VBAK [fields: VBELN, ERDAT, ERNAM, AUDAT, VBTYP, VKORG] and VBAP [Fields: POSNR, MATNR, CHARG, WAERK] and In output(form) i need the following fields,
    Output table:
    -VBELN
    -ERDAT
    -VKORG
    -POSNR
    -MATNR
    -MAKTX <- this field is from table MAKT. (I need the Material descriptions too for all the materials.)
    Form Layout should have Header, Logo (SAP ENJOY), Main, Footer.
    Problem is that i need footer only after the End of Complete data in Main Window, thats is footer should be placed only in last window. How should i do that ?
    Logic which i thot to make the print program is : First declare an internal table itab1 with VBAP, VBAP using the above fields from two tables and fetch the product based on matnr.
    declare one internal table itab2 and select the records from the table makt by checking the condition itab1 is not initial.
    sample code.
    IF ITAB1 IS NOT INITIAL.
    SELECT FIELD LIST FROM MAKT INTO TABLE ITAB2 WHERE MATNR EQ ITAB1-MATNR.
    ENDIF.
    hope this shuld work. ?????

    Hi
    see the sample script program and do accordingly
    *& Report  ZTEST12121
    *& SAPScripts Example 1
    REPORT  ztest12121.
    *DATABASE TABLES
    TABLES: ekko,ekpo,lfa1.
    *INTERNAL TABLES AND STRUCTURES
    DATA i_ekko LIKE ekko.
    DATA i_ekpo LIKE ekpo OCCURS 0 WITH HEADER LINE.
    DATA i_lfa1 LIKE lfa1.
    *PARAMETERS
    PARAMETERS: p_ebeln LIKE ekko-ebeln.
    *VARIABLES
    DATA MAT TYPE STRING VALUE 'MAT NO'.
    DATA iTe TYPE STRING VALUE 'ITEM NO'.
    DATA QTY TYPE STRING VALUE 'QTY'.
    DATA UOM TYPE STRING VALUE 'UOM'.
    DATA NET TYPE STRING VALUE 'NET PRICE'.
    Data var type integer value 0.
    *DATABASE SELECTS
    *Header data
    SELECT SINGLE * FROM ekko INTO i_ekko WHERE ekko~ebeln = p_ebeln.
    IF sy-subrc = 0.
    *Item Data
      SELECT * FROM ekpo INTO  TABLE i_ekpo WHERE ekpo~ebeln = p_ebeln.
      IF sy-subrc NE 0.
        WRITE 'PURCHASE DOCUMENT ITEM DATA ERROR'.
      ELSE.
    *Vendor Details
        SELECT SINGLE * FROM lfa1 INTO i_lfa1 WHERE lfa1~lifnr = i_ekko-lifnr.
        IF sy-subrc NE 0.
          WRITE 'VENDOR DOCUMENT ITEM DATA ERROR'.
        ENDIF.
      ENDIF.
    ELSE.
      WRITE 'THIS PURCHASE DOCUMENT NUMBER DOESNOT EXISTS'.
    ENDIF.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
      APPLICATION                       = 'TX'
      ARCHIVE_INDEX                     =
      ARCHIVE_PARAMS                    =
      DEVICE                            = 'PRINTER'
      DIALOG                            = 'X'
        form                              = 'ZSCRIPT_1'
        language                          = sy-langu
      OPTIONS                           =
      MAIL_SENDER                       =
      MAIL_RECIPIENT                    =
      MAIL_APPL_OBJECT                  =
      RAW_DATA_INTERFACE                = '*'
      SPONUMIV                          =
    IMPORTING
      LANGUAGE                          =
      NEW_ARCHIVE_PARAMS                =
      RESULT                            =
    EXCEPTIONS
      CANCELED                          = 1
      DEVICE                            = 2
      FORM                              = 3
      OPTIONS                           = 4
      UNCLOSED                          = 5
      MAIL_OPTIONS                      = 6
      ARCHIVE_ERROR                     = 7
      INVALID_FAX_NUMBER                = 8
      MORE_PARAMS_NEEDED_IN_BATCH       = 9
      SPOOL_ERROR                       = 10
      CODEPAGE                          = 11
      OTHERS                            = 12
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'OFFICEAD'
       FUNCTION                       = 'SET'
       TYPE                           = 'BODY'
       WINDOW                         = 'OFFICEAD'
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'PODET'
       FUNCTION                       = 'SET'
       TYPE                           = 'BODY'
       WINDOW                         = 'PODET'
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'TOP'
       FUNCTION                       = 'SET'
       TYPE                           = 'TOP'
       WINDOW                         = 'MAIN'
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT I_EKPO.
    var = i_ekpo-netpr * i_ekpo-menge.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'BODY'
       FUNCTION                       = 'SET'
       TYPE                           = 'BODY'
       WINDOW                         = 'MAIN'
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDLOOP.
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
      RESULT                         =
      RDI_RESULT                     =
    TABLES
      OTFDATA                        =
    EXCEPTIONS
      UNOPENED                       = 1
      BAD_PAGEFORMAT_FOR_PRINT       = 2
      SEND_ERROR                     = 3
      SPOOL_ERROR                    = 4
      CODEPAGE                       = 5
      OTHERS                         = 6
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Structure of a print program
    OPEN_FORM function
    CLOSE_FORM function
    WRITE_FORM
    START_FORM function
    END_FORM function
    CONTROL_FORM function
    The print program is used to print forms. The program retieves the necesary data from datbase tables, defines the order of in which text elements are printed, chooses a form for printing and selects an output device and print options.
    Function modules in a printprogram:
    • When you print a form you must used the staments OPEN_FORM and CLOSE_FORM. To combine forms into a single spool request use START_FORM and END_FORM.
    • To print textelements in a form use WRITE_FORM. The order in which the textelements are printed, is determined by the order of the WRITE_FORM statements. Note: for printing lines in the body, you can also use the WRITE_FORM_LINES function module.
    • To transfer control command to a form use CONTROL_FORM.
    Structure of a print program
    Read data
    Tables: xxx.
    SELECT *
    FROM xxx.
    Open form printing - Must be called before working with any of the other form function modules.
    Must be ended with function module CLOSE FORM
    call function 'OPEN_FORM'.....
    To begin several indentical forms containing different data within a single spool request, begin each form using START_FORM, and end it using END_FORM
    call funtion 'START_FORM'.....
    Write text elements to a window of the form
    call function 'WRITE_FORM'.....
    Ends spool request started with START_FORM
    call funtion 'END_FORM'.....
    Closes form printing
    call function 'CLOSE_FORM'...
    OPEN_FORM function
    Syntax:
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    APPLICATION = 'TX'
    ARCHIVE_INDEX =
    ARCHIVE_PARAMS =
    DEVICE = 'PRINTER'
    DIALOG = 'X'
    FORM = ' '
    LANGUAGE = SY-LANGU
    OPTIONS =
    MAIL_SENDER =
    MAIL_RECIPIENT =
    MAIL_APPL_OBJECT =
    RAW_DATA_INTERFACE = '*'
    IMPORTING
    LANGUAGE =
    NEW_ARCHIVE_PARAMS =
    RESULT =
    EXCEPTIONS
    CANCELED = 1
    DEVICE = 2
    FORM = 3
    OPTIONS = 4
    UNCLOSED = 5
    MAIL_OPTIONS = 6
    ARCHIVE_ERROR = 7
    INVALID_FAX_NUMBER = 8
    MORE_PARAMS_NEEDED_IN_BATCH = 9
    SPOOL_ERROR = 10
    OTHERS = 11
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Some important parameters:
    FORM Name of the form
    DEVICE • PRINTER : Print output using spool
    • TELEFAX: Fax output
    • SCREEN: Output to screen
    OPTIONS Used to control attrubutes for printing or faxing (Number of copies, immediate output....
    The input for the parameter is structure ITCPO.
    CLOSE_FORM function
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
    RESULT =
    RDI_RESULT =
    TABLES
    OTFDATA =
    EXCEPTIONS
    UNOPENED = 1
    BAD_PAGEFORMAT_FOR_PRINT = 2
    SEND_ERROR = 3
    SPOOL_ERROR = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Paramerters:
    RESULT Returns status information and print/fax parameters after the form has been printed. RESULT is of structure ITCPP.
    WRITE_FORM function
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = ' '
    FUNCTION = 'SET'
    TYPE = 'BODY'
    WINDOW = 'MAIN'
    IMPORTING
    PENDING_LINES =
    EXCEPTIONS
    ELEMENT = 1
    FUNCTION = 2
    TYPE = 3
    UNOPENED = 4
    UNSTARTED = 5
    WINDOW = 6
    BAD_PAGEFORMAT_FOR_PRINT = 7
    SPOOL_ERROR = 8
    OTHERS = 9
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Some important parameters:
    ELEMENT Specifies which textelement is printed
    WINDOW Specifies which window is printed
    TYPE Specifies the output area of the main window. This can be:
    • TOP - Used for headers
    • BODY
    • BOTTOM - Used for footers
    FUNCTION Specifies whether text is to be appended, replaced or added
    Example of how to use the WRITE_FORM function module together with a script.
    Form layout of the MAIN window
    /E INTRODUCTION
    Dear Customer
    /E ITEM_HEADER
    IH Carrier, Departure
    /E ITEM_LINE
    IL &SBOOK-CARRID&, &SPFLI-DEPTIME&
    /E CLOSING_REMARK
    The print program
    Writing INTRODUCTION
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'INTRODUCTION'
    FUNCTION = 'SET'
    TYPE = 'BODY'
    WINDOW = 'MAIN'
    EXCEPTIONS
    OTHERS = 8
    Writing ITEM_HEADER
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'ITEM_HEADER'
    FUNCTION = 'SET'
    TYPE = 'BODY'
    WINDOW = 'MAIN'
    EXCEPTIONS
    OTHERS = 8
    Set ITEM_HEADER into TOP area of main window for subsequent pages
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'ITEM_HEADER'
    FUNCTION = 'SET'
    TYPE = 'TOP'
    WINDOW = 'MAIN'
    EXCEPTIONS
    OTHERS = 8
    Write ITEM_LINE
    LOOP AT .....
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'ITEM_LINE'
    FUNCTION = 'SET'
    TYPE = 'BODY'
    WINDOW = 'MAIN'
    EXCEPTIONS
    OTHERS = 8.
    ENDLOOP.
    Delete ITEM_HEADER from TOP area of main window
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'ITEM_HEADER'
    FUNCTION = 'DELETE'
    TYPE = 'TOP'
    WINDOW = 'MAIN'
    EXCEPTIONS
    OTHERS = 8
    Print CLOSING_REMARK
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'CLOSING_REMARK'
    FUNCTION = 'SET'
    TYPE = 'BODY'
    WINDOW = 'MAIN'
    EXCEPTIONS
    OTHERS = 8
    START_FORM function
    CALL FUNCTION 'START_FORM'
    EXPORTING
    ARCHIVE_INDEX =
    FORM = ' '
    LANGUAGE = ' '
    STARTPAGE = ' '
    PROGRAM = ' '
    MAIL_APPL_OBJECT =
    IMPORTING
    LANGUAGE =
    EXCEPTIONS
    FORM = 1
    FORMAT = 2
    UNENDED = 3
    UNOPENED = 4
    UNUSED = 5
    SPOOL_ERROR = 6
    OTHERS = 7
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    END_FORM function
    CALL FUNCTION 'END_FORM'
    IMPORTING
    RESULT =
    EXCEPTIONS
    UNOPENED = 1
    BAD_PAGEFORMAT_FOR_PRINT = 2
    SPOOL_ERROR = 3
    OTHERS = 4
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CONTROL_FORM function
    The CONTROL_FORM function module alows you to create SapScript control statements from within an APAB program.
    Syntax:
    CALL FUNCTION 'CONTROL_FORM'
    EXPORTING
    command =
    EXCEPTIONS
    UNOPENED = 1
    UNSTARTED = 2
    OTHERS = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Example:
    Protecting the text element ITEM_LINE
    CALL FUNCTION 'CONTROL_FORM'
    EXPORTING
    COMMAND = 'PROTECT'.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    TEXELEMENT = 'ITEM_LINE'.
    CALL FUNCTION 'CONTROL_FORM'
    EXPORTING
    COMMAND = 'ENDPROTECT'.
    Regards
    Anji

  • Dictionary field in screen

    Hi Abap Gurus,
    I am using dictionary field vbak-vbeln in my screen with search help VMVA.
    I am doing validation on that field by checking entered sale order number is correct or not, if so throwing my user defined error message.
    What happening is instead of throwing my user defined message it is throwing message like
    Entered 'XXXXXXXX' Sale order not found in VBUK Table.  and not allowing me go further.
    Can anybody tell me why it is happening and what to do?

    Hi,
    There is a join on the two tables VBAK, VBUK. If you open the VBAK table and check the Entry/Check Fields tab, you will find a check implemented on VBELN with VBUK-VBELN.
    So, VBAK expects the VBELN value to be present in VBUK which might not be there in your case.
    Go to VBAK -> Fields Tab -> Click on the mark field of VBELN -> Press the Foreign Key button -> A dialog opens -> In the Screen Check -> Uncheck 'Check Required'.
    On doing this, the SAP does not auto check the VBELN value with VBUK.

  • Add a custom field for Product Allocation

    Hi experts,
    I have copied S140 to S501 to add a custom field for product allocation.
    I have added the custom field in MCVBAKUSR, so it is visible in MCVBAK.
    However, I don't know whether I can populate data into custom field. I searched in forum, someone said it can be done in SAP enhancement MCS10001. But it can't work. I have tried to place a break-point in the code, and seems that throughout the order creation and product allocation check, it hasn't get into the codings in enhancement MCS10001.
    Can anyone give me some idea on it? Thanks.

    You should have simply extended VBAK table. It would've taken care of extending MCVBAK, etc. Then VBAK field would have to be populated in a user exit USEREXIT_CHECK_VBAK in MV45AFZB, when a document is being created/changed.

  • Remote Client copy issues

    Hi,
    I have performed a remoted client copy of ECP300 to ECQ system using
    SAP_ALL Profile and the client copied successfully. After the client
    copy some users are complainting that not all data moved over or there
    are some major differences. I know the client copy finished but the
    users are saying the client copy is not a exact copy of ECP.Are there
    any functional or abap post configuration that needs to happen after
    this remote client copy? From the client copy logs, it seem like all
    the tables got copied over. Please advise as this is very critical.
    I have attached 2 issues reported by users and the client copy log with
    details. I have also attached the data dictionary differences of the 2
    system ECP and ECQ using SCC9 --> RFC SYSTEM COMPARISON.
    Target Client                220
    Source Client (incl. Auth.)  265
       Source Client User Master 265
    Copy Type                    Local Copy
    Profile                      SAP_ALL
    Status                       Successfully Completed
    User                         SAP*
    Start on                     01/07/2011 / 23:16:01
    Last Entry on                01/08/2011 / 03:53:31
    Statistics for this Run
    - No. of Tables                  56787 of     56787
    - Number of Exceptions               1
    - Deleted Lines                  11478
    - Copied Lines               152345539
    /ISDFPS/CS_EXLST     Field Missing Remote     IS-DFS-MM     /ISDFPS/MM_CS     SAP     TRANSP          Exception List: Overwritten Purchase Requisitions     SAPKGED04G
    /SAPMP/GT_FDE_T1     Table Missing Remote     IS-MP     /SAPMP/FAST_DATA_ENTRY_GEN_APP     SAP     TRANSP          IMG: Fast Entry in Trading Contract General Settings     SAPK-603DDINECCDIMP
    /SAPMP/GT_FDE_T2     Table Missing Remote     IS-MP     /SAPMP/FAST_DATA_ENTRY_GEN_APP     SAP     TRANSP          Fast Entry in Trading Contract: Transfer from Info Record     SAPK-603DDINECCDIMP
    AD01DLI     Field Missing Remote     PS-REV     AD01     SAP     TRANSP          Dynamic items (DI)     
    ADPIC_MIGO_SET     Table Missing Remote     IS-AD-MPN     ADPIC     SAP     TRANSP          Customizing Settings for MIGO     SAPK-603DDINECCDIMP
    ADPIC_MIGO_USR     Table Missing Remote     IS-AD-MPN     ADPIC     SAP     TRANSP          Customizing Settings for MIGO     SAPK-603DDINECCDIMP
    MPDCD     Field Missing Remote     IS-AD-MPD     AD_MPD     SAP     TRANSP          MPD: OBSOLETE - Counter Data for Maintenance Document Items     SAPK-603DDINECCDIMP
    MPDCUST_DATA_FLG     Table Missing Remote     IS-AD-MPD     AD_MPD     SAP     TRANSP          Customising table to store the data container flag     SAPK-603DDINECCDIMP
    MPDCUST_EFFT_DOC     Table Missing Remote     IS-AD-MPD     AD_MPD     SAP     TRANSP          Customising table to store effectivity data for documents     SAPK-603DDINECCDIMP
    MPDCUST_EFFT_TO     Table Missing Remote     IS-AD-MPD     AD_MPD     SAP     TRANSP          Cust. table to store effectivity data from technical objects     SAPK-603DDINECCDIMP
    MPDCYCLE     Table Missing Remote     IS-AD-MPD     AD_MPD     SAP     TRANSP          MPD: Cycle Data for Maintenance Document Items     SAPK-603DDINECCDIMP
    MPDEFFECT     Table Missing Remote     IS-AD-MPD     AD_MPD     SAP     TRANSP          MPD effectivity data     SAPK-603DDINECCDIMP
    MPDITEM     Table Missing Remote     IS-AD-MPD     AD_MPD     SAP     TRANSP          Maintenance Plan Items     SAPK-603DDINECCDIMP
    MPDPSD     Field Missing Remote     IS-AD-MPD     AD_MPD     SAP     TRANSP          MPD: MPD and MP header data     SAPK-603DDINECCDIMP
    ADMPN_RBA_CGRP     Table Missing Remote     IS-AD-MPN     AD_MPN_RBA_DDIC     SAP     TRANSP          Check Groups for APO ATP     SAPK-603DDINECCDIMP
    TMCNV     Convertible -> Local     CA-GTF-TS     BMG     SAP     TRANSP          Data on Material Numbers Conversion     
    CRFH     Field Missing Remote     PP-BD-PRT     CF     SAP     TRANSP          CIM production resource/tool master data     
    CKIS     Field Missing Remote     CO-PC-PCP     CK     SAP     TRANSP          Items Unit Costing/Itemization Product Costing     
    KALM     Field Missing Remote     CO-PC-PCP     CK     SAP     TRANSP          Costing Run: Costing Objects     
    KEKO     Field Missing Remote     CO-PC-PCP     CK     SAP     TRANSP          Product Costing - Header Data     
    MLCR     Field Missing Remote     CO-PC-ACT     CKML     SAP     TRANSP          Material Ledger Document: Currencies and Values     
    VSAFKO_CN     Field Missing Remote     PS-SIM     CNVS     SAP     TRANSP          Version: Order header data for PP orders     
    VSAFPO_CN     Field Missing Remote     PS-SIM     CNVS     SAP     TRANSP          Version: Order items in PP orders     
    VSAFVC_CN     Field Missing Remote     PS-SIM     CNVS     SAP     TRANSP          Version: Operation in order     
    VSAUFK_CN     Field Missing Remote     PS-SIM     CNVS     SAP     TRANSP          Version: Order master data     SAPK-603DDINSAPAPPL
    VSFPLT_CN     Field Missing Remote     PS-SIM     CNVS     SAP     TRANSP          Version: Billing schedule: Dates     
    VSPLAF_CN     Field Missing Remote     PS-SIM     CNVS     SAP     TRANSP          Version: Planned order     
    VSRESB_CN     Field Missing Remote     PS-SIM     CNVS     SAP     TRANSP          Version: Reservation/Dependent requirements     
    VSRSADD_CN     Field Missing Remote     PS-SIM     CNVS     SAP     TRANSP          Version: Additional fields for reservation     
    VSVBAK_CN     Field Missing Remote     PS-SIM     CNVS     SAP     TRANSP          Version: Sales document: Header data     
    VSVBAP_CN     Field Missing Remote     PS-SIM     CNVS     SAP     TRANSP          Version: Sales document: Item data     
    RSADD     Field Missing Remote     PS-MAT     CN_MAT     SAP     TRANSP          Additional fields for reservation     
    TCNTM05     Field Missing Remote     PS-ST-OPR-NET     CN_NET_OPR     SAP     TRANSP          Assignment Components to Groups     
    AFKO     Field Missing Remote     PP-SFC     CO     SAP     TRANSP          Order header data PP orders     
    AFPO     Field Missing Remote     PP-SFC     CO     SAP     TRANSP          Order item     
    AFVC     Field Missing Remote     PP-SFC     CO     SAP     TRANSP          Operation within an order     SAPK-603DDINSAPAPPL
    AFFW     Field Missing Remote     PP-SFC-EXE-CON     CORU     SAP     TRANSP          Goods Movements with Errors from Confirmations     
    AFRU     Field Missing Remote     PP-SFC-EXE-CON     CORU     SAP     TRANSP          Order Confirmations     SAPK-603DDINSAPAPPL
    AFRV     Field Missing Remote     PP-SFC-EXE-CON     CORU     SAP     TRANSP          Confirmation pool     
    PLPO     Field Missing Remote     PP-BD-RTG     CP     SAP     TRANSP          Task list - operation/activity     
    STPO     Field Missing Remote     LO-MD-BOM     CS     SAP     TRANSP          BOM item     
    T414     Field Missing Remote     LO-MD-BOM     CS     SAP     TRANSP          Explosion Types     
    CJITO_02     Table Missing Remote     IS-A-JIT     DI_JITOUT     SAP     TRANSP          Customizing Table for Definition of Tolerances     SAPK-603DDINECCDIMP
    CJITO_02T     Table Missing Remote     IS-A-JIT     DI_JITOUT     SAP     TRANSP          Text Table to Define the Tolerances     SAPK-603DDINECCDIMP
    JITOCO     Field Missing Remote     IS-A-JIT     DI_JITOUT     SAP     TRANSP          Call Components JIT Outbound     SAPK-603DDINECCDIMP
    S2L_GLOBAL_DATA     Field Missing Remote     IS-A-S2L     DI_S2L     SAP     TRANSP          User-specific Save for Global Settings     SAPK-603DDINECCDIMP
    LFA1     Field Missing Remote     FI     FBASCORE     SAP     TRANSP          Vendor Master (General Section)     
    KNKK     Field Missing Remote     FI-AR-AR     FBD     SAP     TRANSP          Customer master credit management: Control area data     
    VIMI01     Field Missing Remote     RE     FVVI     SAP     TRANSP          Rental unit - Master data     
    VIOB01     Field Missing Remote     RE     FVVI     SAP     TRANSP          Business entities     
    VIOB02     Field Missing Remote     RE     FVVI     SAP     TRANSP          Property master data     
    VIOB03     Field Missing Remote     RE     FVVI     SAP     TRANSP          Real estate building master     
    VIOB27     Field Missing Remote     RE     FVVI     SAP     TRANSP          Relationship between properties and buildings     
    VIOB38     Field Missing Remote     RE     FVVI     SAP     TRANSP          Relationship between Real Estate objects and SAP-PS     
    PEG_TXPT     Field Missing Remote     IS-AD-GPD     GPD     SAP     TRANSP          Pegging: Record of intransit stock in cross plant transfers     SAPKGES01G
    VEKP     Field Missing Remote     LO-HU-BF     HANDLING_UNITS     SAP     TRANSP          Handling Unit - Header Table     
    EQUI     Field Missing Remote     PM-EQM-EQ     IEQM     SAP     TRANSP          Equipment master data     SAPK-603DDINSAPAPPL
    EQUZ     Field Missing Remote     PM-EQM-EQ     IEQM     SAP     TRANSP          Equipment time segment     
    MHIO     Field Missing Remote     PM-PRM-TL     IPRM     SAP     TRANSP          Call Object from Maintenance Order     
    MHIS     Field Missing Remote     PM-PRM-TL     IPRM     SAP     TRANSP          Maintenance plan history     
    EQBS     Field Missing Remote     LO-MD-SN     IQSM     SAP     TRANSP          Serial Number Stock Segment     
    OBJK     Field Missing Remote     LO-MD-SN     IQSM     SAP     TRANSP          Plant Maintenance Object List     SAPK-603DDINSAPAPPL
    SER01     Field Missing Remote     LO-MD-SN     IQSM     SAP     TRANSP          Document Header for Serial Numbers for Delivery     
    SER02     Field Missing Remote     LO-MD-SN     IQSM     SAP     TRANSP          Document Header for Serial Nos for Maint.Contract (SD Order)     
    T377X     Field Missing Remote     LO-MD-SN     IQSM     SAP     TRANSP          Documents Allowed for Serial Number Management     
    CJIT01     Field Missing Remote     IS-A-JIT     ISAUTO_JIT     SAP     TRANSP          JIT: Call Control     SAPK-603DDINECCDIMP
    VLCADDCUST     Table Missing Remote     IS-A-VMS     ISAUTO_VLC     SAP     TRANSP          VELO: Table for VMS additional end customer     SAPK-603DDINECCDIMP
    AFIH     Field Missing Remote     PM-WOC-MO     IWO1     SAP     TRANSP          Maintenance order header     
    AUFM     Field Missing Remote     PM-WOC-MO     IWO1     SAP     TRANSP          Goods movements for order     
    AUFK     Field Missing Remote     CO-OM-OPA     KAUF     SAP     TRANSP          Order master data     SAPK-603DDINSAPAPPL
    CEZP     Field Missing Remote     CO-PC-OBJ-PER     KKPK     SAP     TRANSP          Reporting Points Line Items     
    CPZP     Field Missing Remote     CO-PC-OBJ-PER     KKPK     SAP     TRANSP          Reporting Points - Periodic Totals Values     
    PABHD     Field Missing Remote     PP-KAB     LAPA     SAP     TRANSP          JIT call header record     
    PABIT     Field Missing Remote     PP-KAB     LAPA     SAP     TRANSP          JIT call items     
    LTAK     Field Missing Remote     LE-WM     LVS     SAP     TRANSP          WM transfer order header     
    ASMD     Field Missing Remote     MM-SRV     MASB     SAP     TRANSP          Service Master: Basic Data     
    CHVW     Field Missing Remote     MM-IM     MB     SAP     TRANSP          Table CHVW for Batch Where-Used List     
    ISEG     Field Missing Remote     MM-IM     MB     SAP     TRANSP          Physical Inventory Document Items     
    MKPF     Field Missing Remote     MM-IM     MB     SAP     TRANSP          Header: Material Document     
    MSEG     Field Missing Remote     MM-IM     MB     SAP     TRANSP          Document Segment: Material     
    RESB     Field Missing Remote     MM-IM     MB     SAP     TRANSP          Reservation/dependent requirements     SAPK-603DDINSAPAPPL
    MCIPMIS     Field Missing Remote     PM-IS-REP     MCI     SAP     TRANSP          PMIS: Master data characteristics for PMIS before image     
    MDTB     Field Missing Remote     PP-MRP-BD     MD     SAP     TRANSP          MRP Table     
    PLAF     Field Missing Remote     PP-MRP-BD     MD     SAP     TRANSP          Planned order     
    PKHD     Field Missing Remote     PP-KAB     MD05     SAP     TRANSP          Control Cycle     SAPK-603DDINSAPAPPL
    TPK02     Field Missing Remote     PP-KAB     MD05     SAP     TRANSP          Key for Controlling Control Cycle: External Replenishment     SAPK-603DDINSAPAPPL
    T459K     Field Missing Remote     PP-MP-DEM     MDPB     SAP     TRANSP          Control table for customer requirements     
    EBAN     Field Missing Remote     MM-PUR     ME     SAP     TRANSP          Purchase Requisition     SAPK-603DDINSAPAPPL
    EKBE     Field Missing Remote     MM-PUR     ME     SAP     TRANSP          History per Purchasing Document     
    EKBEH     Field Missing Remote     MM-PUR     ME     SAP     TRANSP          Removed PO History Records     
    EKEK     Field Missing Remote     MM-PUR     ME     SAP     TRANSP          Header Data for Scheduling Agreement Releases     
    EKES     Field Missing Remote     MM-PUR     ME     SAP     TRANSP          Vendor Confirmations     
    EKET     Field Missing Remote     MM-PUR     ME     SAP     TRANSP          Scheduling Agreement Schedule Lines     
    EKKO     Field Missing Remote     MM-PUR     ME     SAP     TRANSP          Purchasing Document Header     
    EKPO     Field Missing Remote     MM-PUR     ME     SAP     TRANSP          Purchasing Document Item     
    EKRS     Field Missing Remote     MM-PUR     ME     SAP     TRANSP          ERS Procedure: Goods (Merchandise) Movements to be Invoiced     
    MARA     Field Missing Remote     LO-MD-MM     MG     SAP     TRANSP          General Material Data     
    MARC     Field Missing Remote     LO-MD-MM     MG     SAP     TRANSP          Plant Data for Material     SAPK-603DDINSAPAPPL
    MARM     Field Missing Remote     LO-MD-MM     MG     SAP     TRANSP          Units of Measure for Material     
    MCH1     Field Missing Remote     LO-MD-MM     MG     SAP     TRANSP          Batches (if Batch Management Cross-Plant)     
    MCHA     Field Missing Remote     LO-MD-MM     MG     SAP     TRANSP          Batches     
    MVKE     Field Missing Remote     LO-MD-MM     MG     SAP     TRANSP          Sales Data for Material     
    T130F     Field Missing Remote     LO-MD-MM     MG     SAP     TRANSP          Field attributes     
    T134     Field Missing Remote     LO-MD-MM     MG     SAP     TRANSP          Material Types     
    MVRA     Field Missing Remote     LO-MD-MM     MGVERS     SAP     TRANSP          Cross-version fields for MARA     SAPKGES01G
    MVRC     Field Missing Remote     LO-MD-MM     MGVERS     SAP     TRANSP          Cross-version fields for MARC     SAPKGES01G
    MVRM     Field Missing Remote     LO-MD-MM     MGVERS     SAP     TRANSP          Units of Measure for Material     SAPKGES01G
    MVVE     Field Missing Remote     LO-MD-MM     MGVERS     SAP     TRANSP          Sales Data for Material     SAPKGES01G
    MILL_T399X     Field Missing Remote     IS-MP-PP     MILL_PP     SAP     TRANSP          Parameters for Partitioning Order - Order Type     SAPK-603DDINECCDIMP
    ESLH     Field Missing Remote     MM-SRV     ML     SAP     TRANSP          Service Package Header Data     
    ESLL     Field Missing Remote     MM-SRV     ML     SAP     TRANSP          Lines of Service Package     
    RSEG     Field Missing Remote     MM-IV     MRM     SAP     TRANSP          Document Item: Incoming Invoice     SAPK-603DDINSAPAPPL
    ADRC     Field Missing Remote     BC-SRV-ADR     SZAD     SAP     TRANSP          Addresses (Business Address Services)     
    VBAK     Field Missing Remote     SD-SLS     VA     SAP     TRANSP          Sales Document: Header Data     SAPK-603DDINSAPAPPL
    VBAP     Field Missing Remote     SD-SLS     VA     SAP     TRANSP          Sales Document: Item Data     SAPK-603DDINSAPAPPL
    VBEP     Field Missing Remote     SD-SLS     VA     SAP     TRANSP          Sales Document: Schedule Line Data     
    VBKD     Field Missing Remote     SD-SLS     VA     SAP     TRANSP          Sales Document: Business Data     SAPK-603DDINSAPAPPL
    CHVW_INC     Field Missing Remote     LO-BM     VB     SAP     TRANSP          Batch Where-Used List- N:M Assignment for Order     
    VBRK     Field Missing Remote     SD-BIL     VF     SAP     TRANSP          Billing Document: Header Data     SAPK-603DDINSAPAPPL
    VBRP     Field Missing Remote     SD-BIL     VF     SAP     TRANSP          Billing Document: Item Data     SAPK-603DDINSAPAPPL
    KONDH     Field Missing Remote     SD-MD-CM     VKON     SAP     TRANSP          Conditions: Batch Strategy - Data Division     
    LIKP     Field Missing Remote     LE-SHP     VL     SAP     TRANSP          SD Document: Delivery Header Data     SAPK-603DDINSAPAPPL
    LIPS     Field Missing Remote     LE-SHP     VL     SAP     TRANSP          SD document: Delivery: Item data     SAPK-603DDINSAPAPPL
    VALW     Field Missing Remote     LE-SHP     VL     SAP     TRANSP          Delivery Plan: Definition of Route Schedule     
    KNVV     Field Missing Remote     LO-MD-BP-CM     VS     SAP     TRANSP          Customer Master Sales Data     
    KNA1     Field Missing Remote     LO-MD-BP-CM     VSCORE     SAP     TRANSP          General Data in Customer Master     
    FPLA     Field Missing Remote     SD-BF     VZ     SAP     TRANSP          Billing Plan     
    FPLT     Field Missing Remote     SD-BF     VZ     SAP     TRANSP          Billing Plan: Dates     
    TFPLT     Field Missing Remote     SD-BF     VZ     SAP     TRANSP          Date Type for Billing Plan Type     
    VBSK     Field Missing Remote     SD-BF     VZ     SAP     TRANSP          Collective Processing for a Sales Document Header     
    VBUK     Field Missing Remote     SD-BF     VZ     SAP     TRANSP          Sales Document: Header Status and Administrative Data     
    VBUP     Field Missing Remote     SD-BF     VZ     SAP     TRANSP          Sales Document: Item Status     
    WBHI     Field Missing Remote     LO     WB2B_DDIC     SAP     TRANSP          Trading Contract: Item Data     
    LFM1     Field Missing Remote     LO-MD-BP-VM     WLIF     SAP     TRANSP          Vendor master record purchasing organization data     
    LFM2     Field Missing Remote     LO-MD-BP-VM     WLIF     SAP     TRANSP          Vendor Master Record: Purchasing Data     
    ZPPWRKMAP     Convertible -> Local     BC     ZDEV     PTANAKI     TRANSP          PP-012: Work Center Mapping     ECDK901192

    Hi,
    What is the volume of data you copied. Also have you followed the best practice of minimal/no activity in the source client.
    The dictionary differences seems to be becuase of some SPs not applied in your ECP system yet
    Regards,
    Sanujit

  • Complete delivery for Inter Company PO

    Hi All,
    We have following requirement from Client
    Within  intercompany business  there is no chance to get a complete delivery directly managed in SAP. When ordering Finished goods where they will also need additionally other spares  parts  as well,  presently they  do not have the chance to mark a Inter company PO to be delivered completely.
    They need a field to flag compareable to SD Customer orders (table:VBAK field: AUTLF) which allows only to create the delivery when for the complete demand of the PO.
    Could you please provide us your suggestion and solution on this issue.
    Thanks in advance.
    Regards,
    Srikanth P.

    Dear Srikanth
    Please maintain BOM for material perfectly.
    PO will not consider BOM as it is meant only for purchase of material from outside.
    You need to have a PO+SO process to finish this scenario successfully.
    integeration of PO and SO through EDI or a web dynpro would be required if you want automation.

  • Table : Production Order in the sales order

    Hi,
    When can we found in the tables of the sales order the link to the PO numer.
    And, In which field screen in the sales order document we can find the order number.
    Thanks for yur quick answer.

    Dear Omar,
    tables of the sales order the link to the PO numer
    Table: VBKD
    Field: BSTDK
    Screen: 4001 (if, for Incompletion Log, maintain as KBES)
    In which field screen in the sales order document we can find the order number
    Table: VBAK
    Field: VBELN
    Screen: 4001
    Best Regards,
    Amit

  • Help needed in "V45A0003" User Exit

    Hello All,
    I have one problem doing Userexit "V45A0003" for VA01.
    I want to disable one field in VA01 Screen no. "4900" when order type is "RE". I try mentioned Exit for the same and i am able to disable that field for all order type but i am unable to get order type value and unable to disable field, so i want your valuable help to get the order type value given at very first screen (101) of VA01.
    So, Please i request all of you to help me in this.
    Thanks & Regards,

    Hi,
    If you want to get the Sales order no in your exit you can make use of below code.
    data:wa_vbak type vbak.
    field-symbol <FS> type any.
    ASSIGN (' (SAPMV45A)VBAK') to <FS>.
    If sy-subrc eq 0 and <FS> is assigned.
    wa_vbak = <fs>.
    endif.
    Now in wa_vbak-AUART you will get the sales order type given initial screen of sales order.
    You can also use below form in User exit include MV45AFZZ for your requirement.
    FORM userexit_field_modification.
    ENDFORM.
    Here you will all sales order data and no need to use above field symbol assignment to read vbak data.
    Regards,
    Pawan

  • Seelct query time out for single region

    Hi ,
    I am currently facing a problem with a report .The problem is in a select query.The report runs successfully when it is run for only more than 1 state but when it is run for single state then it times out.The select query is as given below.
    SELECT avbeln eposnr bvbtyp aerdat akunnr ckunnr d~regio
               ewerks aernam dname1 afaksk b~cmgst
               INTO TABLE t_block
               FROM vbak AS a
               INNER JOIN vbuk AS b
               ON bvbeln = avbeln
               INNER JOIN vbpa AS c
               ON cvbeln = avbeln
               INNER JOIN kna1 AS d
              ON dkunnr = akunnr                             
               ON dkunnr = ckunnr                             
               INNER JOIN vbap AS e
               ON evbeln = avbeln
                   WHERE a~faksk IN faksk
                     AND a~vkorg = vkorg
                     AND a~vtweg IN vtweg
                     AND a~spart IN spart
                     AND a~vkbur IN vkbur
                     AND a~vkgrp IN vkgrp
                     AND a~kunnr IN kunnr
                     AND a~ernam IN ernam
                     AND a~erdat IN erdat
                     AND a~vbeln IN vbeln
                     AND a~vbtyp IN vbtyp
                     AND b~spstg IN ('A','B','C')
                     AND ( b~fsstk NE space
                          OR b~cmgst NE space )
                     AND b~abstk NE 'C'
                     AND c~kunnr IN s_kunwe
                     AND c~parvw = 'WE'
                     AND d~regio IN s_regio.
    Please let me know if you require any more information.
    s_regio is the select option for state.Also I feel that for KUNNR the On conditon might cause soem problem becasue it does not involve key fields.
    thanks,

    hi ds,
    separate the select in several selects. The inner join is not always the best solution.
    take
    data : ivbak type table of vbak,
       field symbols : <xvbak>
    select +++ into corresponding fields of table ivbuk
              from vbuk
              where
    select +++ into corresponding fields of table ivbak
             form vbak
             for all entries in ivbuk
             where vbeln eq ivbuk-vbeln ...
    select ...
    if you want to have one internal table then do it with a loop.
    loop at ivbak assigning <xvbak>
    read table ikna1 with key kunnr = <xvbak>-kunnr.
    loop at ivbap whee vbeln = <xvbak>-vbeln.
    itab..= vbak..
    ? move corresponding ?
    append itab.
    endloop.
    endloop.
    that will not cause a time-out.
    if you want a verry quick program - use tables without heading lines and field symbols with loops with assigning.
    It is more to write but the effect is verry good.
    Hans
    Hans

Maybe you are looking for