Validations in bdc progaram FB60

Hai experts,
where can i do validations on this feilds,these data come from excel file.
*1. Company Code
2. Vendor Code
3. Date
4. GL Code
5. Business area
6. Cost Center    
7. Withholding tax liability   *
thanks
sitaram

1. Company Code
Table T001 field BUKRS
2. Vendor Code
Tables LFA1 field LIFNR and LFB1 fields BUKRS LIFNR
3. Date
Use function module like FI_PERIOD_CHECK
4. GL Code
Tables SKA1 field SAKNR (and key KTOPL from T001) and SKB1 fields BUKRS and SAKNR
5. Business area
Table TGSB field GSBER.
6. Cost Center
Table CSKS field KOSTL (key KOKRS depend on Customizing, look at table TKA02 to find links between society BUKRS control area KOKRS and GSBER business area)
7. Withholding tax liability
Table T5C2J field QSTPF
Regards

Similar Messages

  • What are the validations in bdc?

    what are the validations in bdc?

    Hi,
    you should validate the data before passing it to the SAP System thru BDC.Normally we wont write any routine for calling the BDC Program instead we will execute it directly or schedule as the background job depending on the data load.I would advice you to schedule a background job rather than calling from a routine...
    Usually when you do a BDC, you have the data in a flat file. So, you can upload the data into a internal table and validate the data first, by writing routines and then finally by doing a CALL TRANSACTION / BDC SESSION.
    Regards,
    Ram
    Pls reward points if helpful

  • Problem in BDC for FB60

    I am performing BDC Call Transaction for FB60 Transaction.
    When running in mode 'A', the Inputs are going perfectly fine into the respective fields but the processing stops in the Long Text Field(sgtxt). Even if I enter the details manually the processing does not proceed any further.
    Please let me know how should I remove this.

    Hi,
    Could you please tell me what is happening when you enter the long text (sgtxt)? Is it showing any kind of blocking message ?
    or nothing is happening afterwards.
    For the information, I had a similar kind of issue. I had a validation (OB28) where I were checking the initial condition of the long text. But when I ran it in debug mode, it is understood as the field is not getting populated at this particular point even though it is entered in the TCODE (FB60).
    Hope, it will be helpful for you.
    Regards,
    Selva K.

  • How to do input validation in BDC's?

    hai,
       I am Rajesh, I want to know how and where to write input validation code in BDC's. Please help me on this.
    Thanking you

    Hi and welcome
    all key-fields (and fields with a check-table) are checked by SAP-standard in your called transaction in BDC too.
    if you want to validate additional:
    1)load you data from flat file into itab
    2)check fields:
    -against checktable
    -format (date,currency)
    -value
    A.
    pls reward usful answers
    Message was edited by: Andreas Mann

  • Posting More than 900 lines not allowing uploading using BDC for FB60

    Hi,
    When i am upload vendor invoices with  More than 900 lineitems using BDC program it is giving the fallowing error .
    1          You are entering line item 900 , a maximum of 999 line items are defined
    As per i know it will allow 999 line items for one document posting . But i am getting error when i am posting more than  900.
    If any body know the solution please share with me .
    Thanks
    SriHari

    I vaguely remember that SAP reserves lines for automatically created items e.g. for taxes, you might have run into that limit. Check in that direction with a functional expert, the limit might be configurable.
    Thomas
    Edit: now I did what you could have done and checked the where-used-list for message F5 138, the 900 is hard coded, and it is just a warning, seemingly to alert the user of the brick wall he is about to hit very soon.

  • Validation in BDC

    hi experts,
                           I am uploading customer details from legacy file to SAP systems.
    Can I write single BDC program to change the customer details or else to create a new customer based on the customer number in legacy file.
                     If yes, how can i do it. its very urgent. pls solve my problem
                                                                                    thanking u,

    Try to code in this scenario:
    if record exist
        call transaction 'xd02' using bdcdata.......
    else.
        call transaction 'xd01' using bdcdata.......
    endif.

  • Validation for BDC program

    hi,
    In BDC programe I have to check (or) validate the file path at selection screen events .
    if the selected file is wrong error message should be triggered. how i can do this.
    with regards,
    Srinath

    Hello Reddy,
    In the following example,
    purchase order fields are taken in through a text-file, if the fields do not match the fields of internal table, then just throw an error in GUI_UPLOAD saying , 'FILE CANNOT BE UPLOADED' or say 'UPLOADING FAILED'.
    * STRUCTURE FOR PURCHASE ORDER TABLE                                  *
    TYPES:
      BEGIN OF type_s_mat,
        eeind TYPE rm06b-eeind,            " Delivery Date
        txz01 TYPE eban-txz01,             " Short Text
        menge TYPE eban-menge,             " Quantity
        meins TYPE eban-meins,             " Units
        preis TYPE eban-preis,             " Price
      END OF type_s_mat.                   " BEGIN OF TYPE_S_MAT
    * FIELD STRING FOR PURCHASE ORDER TABLE                               *
    DATA:
      fs_mat TYPE type_s_mat.
    * INTERNAL TABLE FOR PURCHASE ORDER TABLE                             *
    DATA:
         t_mat LIKE
      STANDARD TABLE
            OF fs_mat.
    * INTERNAL TABLE FOR BATCH DATA TRANSFER                              *
    DATA:
         t_bdc TYPE
      STANDARD TABLE
            OF bdcdata
          WITH HEADER LINE.
    * INTERNAL TABLE FOR MESSAGES                                         *
    DATA:
    t_messages TYPE
      STANDARD TABLE
            OF bdcmsgcoll
          WITH HEADER LINE.
    * Work Variables                                                      *
    DATA:
      w_filename TYPE rlgrap-filename,     " Selected File-Name
      w_msg(72) TYPE c,                    " Messages
      w_filename1 TYPE string.             " Full-Path
    *      INITIALIZATION                                                 *
    INITIALIZATION.
      PARAMETERS p_file(128).              " Name of File to be opened
    *      AT SELECTION-SCREEN ON VALUE-REQUEST                           *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      PERFORM open_mat_file.
      p_file = w_filename.
    *      START-OF-SELECTION                                             *
    START-OF-SELECTION.
      IF p_file IS INITIAL.
        MESSAGE 'No File Selected' TYPE 'S' DISPLAY LIKE 'E'.
      ELSE.
        PERFORM open_file.
      ENDIF.                               " IF P_FILE IS INITIAL
    *&      Form  open_mat_file
    * This Subroutine opens Material File of the Presentation Server.
    * This Subroutine has got no Interface Parameters.
    FORM open_mat_file .
      CALL FUNCTION 'F4_FILENAME'
    * EXPORTING
    *   PROGRAM_NAME        = SYST-CPROG
    *   DYNPRO_NUMBER       = SYST-DYNNR
    *   FIELD_NAME          = ' '
       IMPORTING
         file_name          = w_filename.
    ENDFORM.                               " FORM OPEN_MAT_FILE
    *&      Form  open_file
    * This Subroutine facilitates file upload on Presentation Server.
    * This Subroutine has got no Interface Parameters.
    FORM open_file .
      w_filename1 = w_filename.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
         filename                      =  w_filename1
         filetype                      = 'ASC'
    *     has_field_separator           = ' '
    *    HEADER_LENGTH                 = 0
    *    READ_BY_LINE                  = 'X'
    *    DAT_MODE                      = ' '
    *    CODEPAGE                      = ' '
    *    IGNORE_CERR                   = ABAP_TRUE
    *    REPLACEMENT                   = '#'
    *  IMPORTING
    *    FILELENGTH                    =
    *    HEADER                        =
        TABLES
          data_tab                     = t_mat
       EXCEPTIONS
         file_open_error               = 1
         file_read_error               = 2
         no_batch                      = 3
         gui_refuse_filetransfer       = 4
         invalid_type                  = 5
         no_authority                  = 6
         unknown_error                 = 7
         bad_data_format               = 8
         header_not_allowed            = 9
         separator_not_allowed         = 10
         header_too_long               = 11
         unknown_dp_error              = 12
         access_denied                 = 13
         dp_out_of_memory              = 14
         disk_full                     = 15
         dp_timeout                    = 16
         OTHERS                        = 17
      IF sy-subrc <> 0.
        MESSAGE 'Uploading Failed'  TYPE 'S' DISPLAY LIKE 'E'.
      ELSE.
        PERFORM populating_bdc.
      ENDIF.                               " IF SY-SUBRC NE 0
    ENDFORM.                               " FORM OPEN_FILE
    *&      Form  populating_bdc
    * This Subroutine Populates data in Transaction ME51
    * This Subroutine has got no Interface Parameters.
    FORM populating_bdc .
      LOOP AT t_mat INTO fs_mat.
        PERFORM screens USING 'SAPMM06B' '0100'.
        PERFORM fields USING 'EBAN-BSART' 'NB'.
        PERFORM fields USING 'EBAN-KNTTP' 'X'.
        PERFORM fields USING 'RM06B-LPEIN' 'T'.
        PERFORM fields USING 'RM06B-EEIND' fs_mat-eeind.
        PERFORM fields USING 'EBAN-WERKS' '1000'.
        PERFORM fields USING 'EBAN-EKGRP' '100'.
        PERFORM fields USING 'EBAN-MATKL' '006'.
        PERFORM fields USING 'BDC_OKCODE' '/00'.
        PERFORM screens USING 'SAPMM06B' '0106'.
        PERFORM fields USING 'EBAN-TXZ01' fs_mat-txz01.
        PERFORM fields USING 'EBAN-MENGE' fs_mat-menge.
        PERFORM fields USING 'EBAN-MEINS' fs_mat-meins.
        PERFORM fields USING 'BDC_OKCODE' '/00'.
        PERFORM screens USING 'SAPMM06B' '0102'.
        PERFORM fields USING 'EBAN-PREIS' fs_mat-preis.
        PERFORM fields USING 'BDC_OKCODE' '/00'.
        PERFORM screens USING 'SAPMM06B' '0505'.
        PERFORM fields USING 'COBL-KOSTL' '1000'.
        PERFORM fields USING 'BDC_OKCODE' '/00'.
        PERFORM screens USING 'SAPMM06B' '0106'.
        PERFORM fields USING 'BDC_OKCODE' 'BU'.
        CALL TRANSACTION 'ME51' USING t_bdc MODE 'A' MESSAGES INTO
        t_messages.
        IF sy-subrc EQ 0.
          LOOP AT t_messages.
            CALL FUNCTION 'FORMAT_MESSAGE'
              EXPORTING
                id        = t_messages-msgid
                lang      = sy-langu
                no        = t_messages-msgnr
                v1        = t_messages-msgv1
                v2        = t_messages-msgv2
                v3        = t_messages-msgv3
                v4        = t_messages-msgv4
              IMPORTING
                msg       = w_msg
              EXCEPTIONS
                not_found = 1
                OTHERS    = 2.
            IF sy-subrc <> 0.
              MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            ELSE.
              WRITE:/ w_msg.
            ENDIF.                         " IF SY-SUBRC <> 0
          ENDLOOP.                         " LOOP AT T_MAT INTO FS_MAT
        ENDIF.                             " IF SY-SUBRC EQ 0
      ENDLOOP.                             " LOOP T_MAT INTO FS_MAT
    ENDFORM.                               " FORM POPULATING_BDC
    *&      Form  screens
    * This Subroutine populates program name and screen numbers.
    *      -->VALUE(P_PROG)   PROGRAM NAME
    *      -->VALUE(P_SCRNO)  SCREEN NUMBER
    FORM screens USING value(p_prog) value(p_scrno).
      t_bdc-program = p_prog.
      t_bdc-dynpro = p_scrno.
      t_bdc-dynbegin = 'X'.
      APPEND t_bdc.
    ENDFORM.                               " FORM SCREENS
    *&      Form  fields
    * This Subroutine populates Field Value and Field name
    *      -->VALUE(P_FNAM)  Field Name
    *      -->VALUE(P_FVAL)  Field Value
    FORM fields USING value(p_fnam) value(p_fval).
      t_bdc-fnam = p_fnam.
      t_bdc-fval = p_fval.
      APPEND t_bdc.
    ENDFORM.                               " FORM FIELDS
    Hope the above given example, helps you.
    Thanks: Zahackson

  • Bdc for fb60 tcode

    Hi,
    can any one send me a sample code for posting document through fb60 tcode
    thanks

    Hi Bobby,
    try SHDB with FB60 and generate a Report.
    Here a Example:
    report ZTEST
           no standard page heading line-size 255.
    include bdcrecx1.
    start-of-selection.
    perform open_group.
    perform bdc_dynpro      using 'SAPMF05A' '1100'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=DUMMY'.
    perform bdc_field       using 'RF05A-BUSCS'
                                  'R'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'INVFO-XMWST'.
    perform bdc_field       using 'INVFO-ACCNT'
                                  '4711'. "LIFNR
    perform bdc_field       using 'INVFO-BUDAT'
                                  '07.07.2006'.
    perform bdc_field       using 'INVFO-WRBTR'
                                  '1000'.
    perform bdc_field       using 'INVFO-WAERS'
                                  'EUR'.
    perform bdc_field       using 'INVFO-XMWST'
                                  'X'.
    perform bdc_field       using 'INVFO-MWSKZ'
                                  'V4'.
    perform bdc_dynpro      using 'SAPMF05A' '1100'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=BU'.
    perform bdc_field       using 'RF05A-BUSCS'
                                  'R'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'INVFO-XBLNR'.
    perform bdc_field       using 'INVFO-ACCNT'
                                  '4711'. "LIFNR
    perform bdc_field       using 'INVFO-XBLNR'
                                  'test'.
    perform bdc_field       using 'INVFO-WRBTR'
                                  '1.000,00'.
    perform bdc_field       using 'INVFO-XMWST'
                                  'X'.
    perform bdc_field       using 'INVFO-MWSKZ'
                                  'V4'.
    perform bdc_dynpro      using 'SAPMF05A' '1100'.
    perform bdc_field       using 'INVFO-BLDAT'
                                  '07062006'.
    perform bdc_field       using 'INVFO-XBLNR'
                                  'TEST'.
    perform bdc_field       using 'ACGL_ITEM-HKONT(01)'
                                  '467000'.
    perform bdc_field       using 'ACGL_ITEM-WRBTR(01)'
                                  '             1000'.
    perform bdc_field       using 'ACGL_ITEM-KOSTL(01)'
                                  '1000'.
    perform bdc_transaction using 'FB60'.
    perform close_group.
    Regards, Dieter

  • Validation check for Tcode FB10 and FB60 - FICO.

    I have an issue in validation check for Tcode 'FB60' and  'FB10'.
    there are two exits coded for these transactions through transaction 'GGB0'.
    details for the two exits.
    exit 1.
      when posting a vendor invoice, the network status is checked whether it is completed or not - if status is completed error message is raised.
    exit 2.
      when posting vendor invoice - for G/L Account in 60000 - 69999 series network should not be posted. if posted error message is raised.
    when these two exits are entered via a prerequisites in code 'KGB' a code is generated automatically to call these exits- when transaction 'FB10' 'FB60' is executed.
    Issue:
    for  code 'FB10' is executed with network with status completed and with G/LP account in 60000 - 69999 series -
    error message is raised in sequence i.e. exit 1 is raised and then exit 2 is raised.
    but for code 'FB60' if condition for exit 2 is  not satisfied then exit 1 message is raised.
    but it should be in sequence in raising the error message i.e. exit 1 and then exit.
    Even though for both the transaction the auto generated code is similar and even exits are similar - but it is execution in raising the error message is diffrent.
    - Since it is auto generated code i am able to figure out the issue.
    i would appreciate if any one could help me out in this issue.
    thank you,
    with dregs,
    Karthik.

    Hi,
    I have tried what you have suggested. But still validation is not working
    I have done the following validation based on your inputs.
    Prerequisite
    Company Code = '1265' AND Transaction code = 'FB60' AND
    Account Type = 'K' OR
    Transaction code = 'F-43' AND Account Type = 'K' OR
    Transaction code = 'F-48' AND Account Type = 'K'
    Check
    Business Place > '' AND Business Place = Section Code
    Message
    E - Error Message
    Still it is not working.
    Please suggest.
    Best Regards
    Shashikanth.M

  • FB60 validation help

    Hi Friends,
    I am using the copy standard program 'rggbr000' to Z for my validation rule for Tcode FB60.
    My requirement is when the user enter Part.Bank field(invfo-BVTYP) in Payment tab then my validation exit should done some check. The problem is, it's not going to my debug point (as it is functioning only for Basic data fields). I have tried giving break-point in various areas of exit but it's not functioning for payment tab fields while saving or performing next action.
    Is this a correct validation program? or is there any other solution available?
    Please advise.
    PS: GGB0 decalration are done perfectly.
    Thanks & Regards
    Sankar.

    >
    Vinod Kumar wrote:
    > Check whether the field mentioned by you is availiable for validation.  For this check the entries in table GB01 (Field - BEXCLUDE).
    > Alternatively, test the validation by simulating it from ob28.
    1. You can view the fields which can be validated in GGB0.
    2. I don't think any simulation can be done via OB28. It is a simple parameter trxn of SM30 for maintaining view 'V_T001D'. Correct me if i am wrong.
    BR,
    Suhas

  • In RFC how to uploading data using bdc

    Hi, Experts
    In RFC how to use bdc program for uploading data
    any example plz.
    my requrement for tcode ME21.
    thank you in advance.
    with best regards
        sai

    Thank u  reply
    my requirement is in function moudle 
    ( Program will be called from non-sap system with the data in the form of table as per the structure given above. Then the program will do the some validation for the data.  If data validated correct, BDC will be run for creating DO
    condition is )
    ex:
    if T_itab –KNTTP = ‘K’,
    Run BDC for transaction ME21.
    ( in that you should not use upload and ws_upload )
    in put paramer is taking value for structure (non- sap ) run the bdc update in sap system.
    plz any sample program
    regards
    sai

  • BDC PROGRAM

    Hi to all
    I'm new to BDC Progaram
    can u tell me how to write a
    BDC program to upload purchase order data from legacy system.

    Hi Viswanath,
                        First i will explain the procedure step by step and will send a sample code plz check it once ok..And also i will attach a flat file at the end of SAMPLE CODE CHECK IT ONCE OK..
    Steps:
    1.Bulid an internal table first according to ur flat file fields.
    2.select the flat file by using PARAMETER.
    3.And assign that file path to GUI_UPLOAD function module.
    4.Call BDC_OPEN_GROUP is used to open the session.
    5.loop that flat file data and palce BDC_INSERT funtion module in that loop for uploading data into database table
    6.After loop call BDC_CLOSE_GROUP to close the session.
    SAMPLE CODE:
    REPORT ybdc_session_mm01 NO STANDARD PAGE HEADING LINE-SIZE 255.
    Global Structure for BDC Data
    DATA: it_bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
    Internal Table
    DATA: BEGIN OF itab OCCURS 0,
    mbrsh LIKE rmmg1-mbrsh,
    mtart LIKE rmmg1-mtart,
    maktx LIKE makt-maktx,
    meins LIKE mara-meins,
    END OF itab.
    Upload the flat file
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename =
    'C:\Documents and Settings\Compaq_Owner\Desktop\satish\mm01.txt'
    filetype = 'ASC'
    has_field_separator = 'X'
    HEADER_LENGTH = 0
    READ_BY_LINE = 'X'
    DAT_MODE = ' '
    IMPORTING
    FILELENGTH =
    HEADER =
    TABLES
    data_tab = itab.
    EXCEPTIONS
    FILE_OPEN_ERROR = 1
    FILE_READ_ERROR = 2
    NO_BATCH = 3
    GUI_REFUSE_FILETRANSFER = 4
    INVALID_TYPE = 5
    NO_AUTHORITY = 6
    UNKNOWN_ERROR = 7
    BAD_DATA_FORMAT = 8
    HEADER_NOT_ALLOWED = 9
    SEPARATOR_NOT_ALLOWED = 10
    HEADER_TOO_LONG = 11
    UNKNOWN_DP_ERROR = 12
    ACCESS_DENIED = 13
    DP_OUT_OF_MEMORY = 14
    DISK_FULL = 15
    DP_TIMEOUT = 16
    OTHERS = 17
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Session Method Starts
    BDC_OPEN_GROUP
    CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
    CLIENT = SY-MANDT
    DEST = FILLER8
    GROUP = 'ychinnu'
    HOLDDATE = FILLER8
    KEEP = 'X'
    USER = SY-UNAME
    RECORD = FILLER1
    PROG = SY-CPROG
    IMPORTING
    QID =
    EXCEPTIONS
    CLIENT_INVALID = 1
    DESTINATION_INVALID = 2
    GROUP_INVALID = 3
    GROUP_IS_LOCKED = 4
    HOLDDATE_INVALID = 5
    INTERNAL_ERROR = 6
    QUEUE_ERROR = 7
    RUNNING = 8
    SYSTEM_LOCK_ERROR = 9
    USER_INVALID = 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.
    Create BDCDATA Structure
    *include bdcrecx1.
    START-OF-SELECTION.
    PERFORM open_group.
    loop at itab.
    PERFORM bdc_dynpro USING 'SAPLMGMM' '0060'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'RMMG1-MTART'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'RMMG1-MBRSH'
    itab-mbrsh.
    PERFORM bdc_field USING 'RMMG1-MTART'
    itab-mtart.
    After enterning MBRSH,MTART we press enter
    PERFORM bdc_dynpro USING 'SAPLMGMM' '0070'. "press Enter
    PERFORM bdc_field USING 'BDC_CURSOR'
    'MSICHTAUSW-DYTXT(01)'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ENTR'.
    View selection (Basic data1)
    PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(01)'"view selection
    'X'.
    Select Tick Mark (ok)
    PERFORM bdc_dynpro USING 'SAPLMGMM' '4004'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=BU'.
    PERFORM bdc_field USING 'MAKT-MAKTX'
    itab-maktx.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'MARA-MEINS'.
    PERFORM bdc_field USING 'MARA-MEINS'
    itab-meins.
    Finally after filling the data we save the data.
    PERFORM bdc_field USING 'MARA-MTPOS_MARA' "For saving
    'NORM'.
    PERFORM bdc_transaction USING 'MM01'.
    PERFORM close_group.
    BDC_INSERT
    CALL FUNCTION 'BDC_INSERT'
    EXPORTING
    TCODE = 'MM01'
    POST_LOCAL = NOVBLOCAL
    PRINTING = NOPRINT
    SIMUBATCH = ' '
    CTUPARAMS = ' '
    TABLES
    dynprotab = it_bdcdata
    EXCEPTIONS
    INTERNAL_ERROR = 1
    NOT_OPEN = 2
    QUEUE_ERROR = 3
    TCODE_INVALID = 4
    PRINTING_INVALID = 5
    POSTING_INVALID = 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.
    Refresh BDCDATA
    refresh it_bdcdata.
    endloop.
    Closing BDC Group
    CALL FUNCTION 'BDC_CLOSE_GROUP'
    EXCEPTIONS
    NOT_OPEN = 1
    QUEUE_ERROR = 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.
    Start new screen *
    FORM bdc_dynpro USING program dynpro.
    CLEAR it_bdcdata.
    it_bdcdata-program = program.
    it_bdcdata-dynpro = dynpro.
    it_bdcdata-dynbegin = 'X'.
    APPEND it_bdcdata.
    ENDFORM. "BDC_DYNPRO
    Insert field *
    FORM bdc_field USING fnam fval.
    IF FVAL NODATA.
    CLEAR it_bdcdata.
    it_bdcdata-fnam = fnam.
    it_bdcdata-fval = fval.
    APPEND it_bdcdata.
    ENDIF.
    ENDFORM. "BDC_FIELD
    Flat File
    *M FERT IRON KG
    *M ROH STEEL KG
    *M HALB IRON KG
    Award points if helpful.
    Kiran Kumar.G.A

  • Derive Payment method in FB60

    Hello.
    I am in transaction FB60.
    My requirement is that after I input the Vendor number, the payment mehod in the Payment tab is populated by taking the payment method from table LFB1-ZWELS.
    I have tried to search the forum and debug the standard but did not find where I can implement this requirement.
    Thank you for your quick help.

    Hi Tawseef,
    It is possible with validation:
    T.Code GGB0 validation
    Prerequisite
    Transaction code = 'fb60' or Transaction code = 'MIRO' or Transaction code = 'xyz'
    Check
    Payment Method "
    Message
    Please Enter Payment Method
    You will find payment method field as following:
    Double Click Check. Double click Accounting Document Header.
    Hope this helps
    Tarek
    Edited by: Tarek AYACHI on Oct 13, 2010 1:42 PM

  • Call transaction fb60

    Hello again,
    I have an ALV report , I have to call  transaction FB60 by double click.
    This transaction has no parameter ID.
    I tried with with Submit ' but got dump since the program is type M.
    How can I call FB60?
    Regards
    Yifat

    Record BDC for FB60 using SHDB TCODE..Code for BDC of FB60 for one record of ALV..
    Cheers

  • BDC- Message Interrupting Upload

    Hi Gurus,
    I am doin an batch session ( BDC) for mass data upload.
    May i know how i am supposed to omit an message ( warning etc) due to which the upload stops.
    Regards,
    Navin

    The Error messages ,if any ,will come if you are uploading thru BDC in E mode.
    This can be avoided only by removing the cause of the error message,
    programmatically in the BDC program itself.
    Say u are getting an error message because of blank entry in one field..
    Then catch that error in the BDC program itself and throw an error. So that it will not go the screen.
    Allow the controll to go to the screen, if all the entries are perfect.
    That is... place al the screen validations in BDC program.

Maybe you are looking for

  • Displays and Genius Bar

    This is a really dumb question, but I'm assuming that if I'm taking my mac mini into an apple store to be serviced at a Genius Bar, I have to bring my monitor? Or no?

  • Technical Comm. Suite 1.3 - Download Saga (ongoing)

    Has anyone here experienced what I describe below and, if so, have you been able to achieve any resolution. On Monday, Sept. 8, I purchased the download version of the 1.3 upgrade to the Technical Communication Suite. On the download software page th

  • Can I convert a children's picture book to an ebook?

    We have a few children's picture books that we want to make into ebooks. The books contain a front jacket, a Page 1 which is a single page, pages 2-31 (spreads), page 32 and a single back. Is there any way to faithfully reproduce these books into an

  • Reinstall OS 9 on G3 iMac with new Hard Drive...running OS X

    Situation: I recently changed out my hard drive on my G3 iMac DV Graphite....12GB to 100GB. Had difficulties, posted a question on the iMac board and was successfully directed to load OS 10.3. I'm starting with a "clean" hard drive (will add backed u

  • What has happened to the 7th chords in garage band ??

    actually that whole section doesnt work anymore ??