Problem in Upload of data using FBZ5 which is for cheque form printing

hi Gurus,
     I have done recording for uploading of the documents for printing of the cheques, using FBZ5 to code. now the problem is it is not picking up the items continuously one after the other and at the same time the cheques are not printing. what could be the problem and the code is given below. Please check out and let me know how to do. Like one by one document has to be generated and at the same time the cheque has to be printed.
perform bdc_dynpro      using 'SAPMFCHK'         '0750'.
perform bdc_field       using 'BDC_CURSOR'       'OPAYF-PPRIZ'.
perform bdc_field       using 'BDC_OKCODE'       '/00'.
perform bdc_field       using 'BKPF-BELNR'     CHK_TAB-BELNR.    "  '2807000006'.
perform bdc_field       using 'OPAYF-BUKRS'    CHK_TAB-BUKRS.    "  '1000'.
perform bdc_field       using 'BKPF-GJAHR'     CHK_TAB-GJAHR.    "  '2007'.
perform bdc_field       using 'OPAYF-RZAWE'      'C'.
perform bdc_field       using 'OPAYF-PSTAP'    CHK_TAB-PSTAP.    "  '1'.
perform bdc_field       using 'OPAYF-PZFOR'      'ZF110_D_SCHECK13'.
perform bdc_field       using 'OPAYF-PPRIZ'    CHK_TAB-PPRIZ.    "  'LOCL'.
perform bdc_field       using 'OPAYF-PSOFO'      'X'.
perform bdc_field       using 'OPAYF-PPRIA'      'locl'.
perform bdc_dynpro      using 'SAPMFCHK'         '0750'.
perform bdc_field       using 'BDC_CURSOR'       'BKPF-BELNR'.
perform bdc_field       using 'BDC_OKCODE'       '=DRUK'.
perform bdc_dynpro      using 'SAPMFCHK'         '0750'.
*perform bdc_field       using 'BDC_CURSOR'       'BKPF-BELNR'.
perform bdc_field       using 'BDC_OKCODE'       '=NEW'.    "'/EEND'.
**perform bdc_dynpro      using 'SAPMFCHK'         '0750'.
**perform bdc_field       using 'BDC_OKCODE'       '=DRUK'.      "'/EEND'.
**perform bdc_field       using 'BDC_CURSOR'       'BKPF-BELNR'.
Thanks
Syama

HI
I am sending the full code. now it is printing continuously, but it is not printing the check from the cheque printer, but the invoice is printed on the A4 sheet. What wuold be the problem.
report ZCHECK
       no standard page heading line-size 255.
DATA : BEGIN OF CHK_TAB OCCURS 100,
          BELNR LIKE BKPF-BELNR,
          BUKRS LIKE OPAYF-BUKRS,
          GJAHR LIKE BKPF-GJAHR,
          PSTAP LIKE OPAYF-PSTAP,
          PPRIZ LIKE OPAYF-PPRIZ,
       END OF CHK_TAB.
DATA: v_opt LIKE ctu_params,
      v_ltext1(70) TYPE c,
      v_ltext2(70) TYPE c,
      v_tabix LIKE sy-tabix.
*-- Internal Table for including the structure alsmex_tabline
DATA: BEGIN OF i_excel OCCURS 0.
        INCLUDE STRUCTURE alsmex_tabline.
DATA: END OF i_excel.
      Batch input data
DATA:   bdcdata LIKE bdcdata   OCCURS 0 WITH HEADER LINE.
      messages of call transaction
DATA:   messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
PARAMETERS: p_file TYPE rlgrap-filename OBLIGATORY,
            start TYPE i OBLIGATORY, end TYPE i OBLIGATORY,
            dismode TYPE ctu_params-dismode DEFAULT 'A' OBLIGATORY.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
  CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
   EXPORTING
     program_name        = syst-repid
    DYNPRO_NUMBER       = SYST-DYNNR
    FIELD_NAME          = ' '
    STATIC              = ' '
    MASK                = ' '
    CHANGING
      file_name           =  p_file
   EXCEPTIONS
     mask_too_long       = 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.
  ENDIF.
START-OF-SELECTION.
  DATA l_file TYPE string.
  CLEAR l_file.
  l_file = p_file.
*-- Calling the function ALSM_EXCEL_TO_INTERNAL_TABLE
  CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
    EXPORTING
      filename                = p_file
      i_begin_col             = 1
      i_begin_row             = start
      i_end_col               = 50
      i_end_row               = end
    TABLES
      intern                  = i_excel
    EXCEPTIONS
      inconsistent_parameters = 1
      upload_ole              = 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.
END-OF-SELECTION.
  DATA: v_opltext(600) TYPE c,
        v_ipltext(600) TYPE c,
        v_len TYPE i,
        r_count(2) TYPE c,
        v_rowcount(2) TYPE c,
        v_screenfld(132) TYPE c,
        msg_txt(150) TYPE c.
LOOP AT i_excel.
    CASE i_excel-col.
      WHEN '0001'.
        CHK_TAB-BELNR = i_excel-value.
      WHEN '0002'.
        CHK_TAB-BUKRS = i_excel-value.
      WHEN '0003'.
        CHK_TAB-GJAHR = i_excel-value.
      WHEN '0004'.
        CHK_TAB-PSTAP = i_excel-value.
      WHEN '0005'.
        CHK_TAB-PPRIZ = i_excel-value.
ENDCASE.
    AT END OF row.
      APPEND CHK_TAB.
      CLEAR CHK_TAB.
    ENDAT.
  ENDLOOP.
  v_opt-dismode = dismode.
  v_opt-updmode = 'S'.
LOOP AT CHK_TAB.
    CLEAR: v_tabix.
    v_tabix = sy-tabix.
perform bdc_dynpro      using 'SAPMFCHK'       '0750'.
perform bdc_field       using 'BDC_CURSOR'     'BKPF-GJAHR'.
perform bdc_field       using 'BDC_OKCODE'     '/00'.
perform bdc_field       using 'BKPF-BELNR'      CHK_TAB-BELNR.   "'2807000008'.
perform bdc_field       using 'OPAYF-BUKRS'    CHK_TAB-BUKRS.    "'1000'.
perform bdc_field       using 'BKPF-GJAHR'     CHK_TAB-GJAHR.    "'2007'.
perform bdc_field       using 'OPAYF-RZAWE'    'C'.
perform bdc_field       using 'OPAYF-PSTAP'    CHK_TAB-PSTAP.    "'1'.
perform bdc_field       using 'OPAYF-PZFOR'    'ZF110_D_SCHECK13'.
perform bdc_field       using 'OPAYF-PPRIZ'    CHK_TAB-PPRIZ.    "'locl'.
perform bdc_field       using 'OPAYF-PSOFO'    'X'.
perform bdc_field       using 'OPAYF-PPRIA'    'locl'.
perform bdc_dynpro      using 'SAPMFCHK'       '0750'.
perform bdc_field       using 'BDC_CURSOR'     'BKPF-BELNR'.
perform bdc_field       using 'BDC_OKCODE'     '=DRUK'.
**perform bdc_field       using 'BKPF-BELNR'     '2807000008'.
**perform bdc_field       using 'OPAYF-BUKRS'    '1000'.
**perform bdc_field       using 'BKPF-GJAHR'     '2007'.
**perform bdc_field       using 'OPAYF-RZAWE'    'C'.
**perform bdc_field       using 'OPAYF-PSTAP'    '1'.
**perform bdc_field       using 'OPAYF-PZFOR'    'ZF110_D_SCHECK13'.
**perform bdc_field       using 'OPAYF-PPRIZ'    'locl'.
**perform bdc_field       using 'OPAYF-PSOFO'    'X'.
**perform bdc_field       using 'OPAYF-PPRIA'    'locl'.
perform bdc_dynpro      using 'SAPMFCHK'       '0750'.
perform bdc_field       using 'BDC_OKCODE'     '/EEND'.
perform bdc_field       using 'BDC_CURSOR'     'BKPF-BELNR'.
**perform bdc_dynpro      using 'SAPMFCHK'         '0750'.
**perform bdc_field       using 'BDC_CURSOR'       'OPAYF-PPRIZ'.
**perform bdc_field       using 'BDC_OKCODE'       '/00'.
**perform bdc_field       using 'BKPF-BELNR'     CHK_TAB-BELNR.    "  '2807000006'.
**perform bdc_field       using 'OPAYF-BUKRS'    CHK_TAB-BUKRS.    "  '1000'.
**perform bdc_field       using 'BKPF-GJAHR'     CHK_TAB-GJAHR.    "  '2007'.
**perform bdc_field       using 'OPAYF-RZAWE'      'C'.
**perform bdc_field       using 'OPAYF-PSTAP'    CHK_TAB-PSTAP.    "  '1'.
**perform bdc_field       using 'OPAYF-PZFOR'      'ZF110_D_SCHECK13'.
**perform bdc_field       using 'OPAYF-PPRIZ'    CHK_TAB-PPRIZ.    "  'LOCL'.
**perform bdc_field       using 'OPAYF-PSOFO'      'X'.
**perform bdc_field       using 'OPAYF-PPRIA'      'locl'.
**perform bdc_dynpro      using 'SAPMFCHK'         '0750'.
**perform bdc_field       using 'BDC_CURSOR'       'BKPF-BELNR'.
**perform bdc_field       using 'BDC_OKCODE'       '=DRUK'.
**perform bdc_dynpro      using 'SAPMFCHK'         '0750'.
**perform bdc_field       using 'BDC_CURSOR'       'BKPF-BELNR'.
**perform bdc_field       using 'BDC_OKCODE'       '=NEW'.    "'/EEND'.
**perform bdc_dynpro      using 'SAPMFCHK'         '0750'.
**perform bdc_field       using 'BDC_OKCODE'       '=DRUK'.      "'/EEND'.
**perform bdc_field       using 'BDC_CURSOR'       'BKPF-BELNR'.
'=ENTE'. '=BU'.
CALL TRANSACTION 'FBZ5' USING bdcdata
      OPTIONS FROM v_opt MESSAGES INTO messtab.
      WRITE:/10 'ROW:' COLOR 4,v_tabix.
      LOOP AT messtab.
        CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            id        = messtab-msgid
            lang      = sy-langu
            no        = messtab-msgnr
            v1        = messtab-msgv1
            v2        = messtab-msgv2
            v3        = messtab-msgv3
            v4        = messtab-msgv4
          IMPORTING
            msg       = msg_txt
          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.
        ENDIF.
        IF messtab-msgtyp EQ 'E'.
          WRITE:/10 messtab-msgtyp,msg_txt COLOR 6.
        ELSEIF messtab-msgtyp EQ 'S'.
          WRITE:/10 messtab-msgtyp,msg_txt COLOR 5.
        ELSEIF messtab-msgtyp EQ 'W'.
          WRITE:/10 messtab-msgtyp,msg_txt COLOR 3.
        ELSE.
          WRITE:/10 messtab-msgtyp,msg_txt COLOR 4.
        ENDIF.
        CLEAR msg_txt.
      ENDLOOP.
      ULINE.
      REFRESH:bdcdata,messtab.
  ENDLOOP.
*&      Form  BDC_DYNPRO
      text
     -->PROGRAM    Program name
     -->DYNPRO     Screen number
FORM bdc_dynpro USING program dynpro.
  CLEAR bdcdata.
  bdcdata-program  = program.
  bdcdata-dynpro   = dynpro.
  bdcdata-dynbegin = 'X'.
  APPEND bdcdata.
ENDFORM.                    "bdc_dynpro
*&      Form  BDC_FIELD
      Insert batch input data
     -->FNAM       Screen Field Name
     -->FVAL       Field Value
FORM bdc_field USING fnam fval.
  CLEAR bdcdata.
  bdcdata-fnam = fnam.
  bdcdata-fval = fval.
  APPEND bdcdata.
ENDFORM.                    "BDC_FIELD
**perform bdc_transaction using 'FBZ5'.
**perform close_group.

Similar Messages

  • How to avoid the split problem when uploading the data from csv file

    Dear Friends,
                  I have to upload data from the .csv file to my custom table , i have found a problem when uploading the data .
    i am using the code as below , please suggest me what i have to do in this regard
          SPLIT wa_raw_csv  AT ',' INTO
                    wa_empdata_csv-status
                     wa_empdata_csv-userid
                     wa_empdata_csv-username
                     wa_empdata_csv-Title
                     wa_empdata_csv-department.
    APPEND wa_empdata_csv TO  itab.
    in the flat file i can see for one of the record for the field Title  as
    Director, Finance - NAR............there by through my code the  wa_empdata_csv-Title is getting splited data as "Director, and  Department field is getting Finance - NAR" , i can see that even though  " Director, Finance - NAR"  is one word it is getting split .
    .......which is the problem iam facing.Please could any body let me know how in this case i should handle in my code that this word
    "Director,Finance - NAR"   wil not be split into two words.
    Thanks & Records
    Madhuri

    Hi Madhuri,
    Best way to avoid such problem is to use TAB delimited file instead of comma separated data. Generally TAB does not appear in data.
    If you are generating the file, use tab instead of comma.
    If you cannot modify the format of file and data length in file is fixed character, you will need to define the structure and then move data in fixed length structure.
    Regards,
    Mohaiyuddin

  • Problem in uploading a file using Ws_upload.

    Hi Experts,
                        I am using WS_UPLOAD for uploading .xls file into SAP Standard table T558A.
    Problem is file is not uploaded to DB table.....getting error like
    ERROR DURING FILE UPLOAD/DOWNLOAD as  pop up message.....
    can any boady please help on this issue.
    Regards,
    Praveena.

    Hi,
    If you want to upload the data using EXCEL file use the function module ALSM_EXCEL_TO_INTERNAL_TABLE.
    Examples for ALSM_EXCEL_TO_INTERNAL_TABLE.
    http://wiki.sdn.sap.com/wiki/display/Snippets/Howtouse+FM'ALSM_EXCEL_TO_INTERNAL_TABLE'

  • Problem in Uploading Excel Data ! - Urgent

    Dear Experts,
    I am uploading excel data using FM 'TEXT_CONVERT_XLS_TO_SAP' , its directly convert data and store in internal table same as in excel sheet(row , column wise).
    But the problem is , one of the column having description more then 500 characters. so while uploding excel to itab its truncating the text and only uploding 255 characters.
    Is there any other way , so that i can upload more then 500 characters long text. Also i have tried 'ALSM_EXCEL_TO_INTERNAL_TABLE' FM , it was also not working.
    Please Help me , its Urgent.
    Points will be rewared.
    Thanks & Regards,

    Hi,
    Please use FM 'GUI_UPLOAD'.
    types: begin of ttab,
           rec(1000) type c,
           end of ttab.
    types: begin of tdat,
           fld1(10) type c,
           fld2(10) type c,
           fld3(10) type c,
           end of tdat.
    data: itab type table of ttab with header line.
    data: idat type table of tdat with header line.
    data: file_str type string.
    parameters: p_file type localfile.
    at selection-screen on value-request for p_file.
      call function 'KD_GET_FILENAME_ON_F4'
           exporting
                static    = 'X'
           changing
                file_name = p_file.
    start-of-selection.
      file_str = p_file.
      call function 'GUI_UPLOAD'
           exporting
                filename                = file_str
                filetype                = 'ASC'
           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.
    Best regards,
    Prashant

  • Upload XML data using XSQL and HTTP Post ?

    Upload XML data using XSLQ and HTTP Post: is that possible ?
    An xsql contains an <xsql:insert-request table="aTable">
    The XML data file follows the ROWSET/ROW paradigm.
    What is the HTML form to upload the xml file to the XSQL ?
    I tried:
    <form action="myXSQL.xsql" method="POST" ENCTYPE="multipart/form-data">
    XML data file to upload: <input type="file">
    <input type="submit">
    </form>
    But the answer of myXSQL is:
    <xsql-status action="xsql:insert-request" result="No posted document to process" />
    Where is the problem ?
    Thank you.

    Hello,
    You are posting your XML file as a parameter therefore you should use the <xsql:insert-params/> tag, not the <xsql:insert-request/>. The insert-request can only handle data not posted via a parameter.
    Usage:
    <form action="myXSQL.xsql" method="GET" ENCTYPE="multipart/form-data">
    XML data file to upload: <input type="file" name="myXML">
    <input type="submit">
    </form>
    in combination with
    <xsql>
    <xsql:insert-params name="myXML" table="your table"/>
    </xsql>
    2 remarks:
    I was not able to succesfully POST the form. The answer was <xsql-status action="xsql:insert-request" result="No posted document to process" />. With GET is was succesfull.
    Second, if you use MSInternet explorer 5 or higher use could post the XML directly (not aw parameter) using an ActiveX object.
    Regards,
    Harm Verschuren

  • Error while uploading the data using FM"upload"

    Hi,
    I encountering an error while uploading the data using text file with FM " UPLOAD"
    The error is "File does not exist or cannot be opened "
    But there is a file with name and extenstion right.
    Regards
    Vishnu

    You have to create RC29P-IDNRK(var) using concatenate statement. Try this.
    DATA: new_mark TYPE bdcdata-fnam.
    CONCATENATE 'RC29P-IDNRK(' var ')' INTO new_mark.
    PERFORM bdc_field USING new_mark W_BOM-QTY

  • Upload the data using BAPI in LSMW

    Hi
      I want to upload the data using the BAPI in LSMW,but i dont know what value should be passed in
      1- Business Object
      2- Method
    fields.
    Ex- Suppose i want to upload the Material Master Data then what should be the value of these two fields.
    Thanks
    Mrutyunjaya Tripathy

    Hi
      Sorry to say that i am little bit confuse with your answer
    1-The business object already contains some object name wheather i have to give object names or different,As you have mentioned to give the tcode than what tcode that would be
    2-If i am giving any internal table name in the method field it is giving me error because this field is related to the business object field
    Thanks
    Tripathy m

  • Using Digital Personnel File for HCM Forms & Processes

    Hi,
    We would like to use Digital Personnel File for HCM Forms & Processes to save forms and attachments using record case management. For this to be done record case management needs to be customized. Can you provide the steps for record case management customization and integrating digital personnel files with HCM forms.
    Regards,
    Amit

    http://help.sap.com/erp2005_ehp_03/helpdata/en/43/1d63953fce3566e10000000a11466f/frameset.htm
    Refer here

  • Problem to upload the data into internal table record length more than 6000

    Hi all
            I stuck with this problem from past 3 days. I have to upload the data from excel sheet. iam making it tab delimited and trying to upload from gui_upload. but in the structure of file, we have, one field of 4000 characters, and other fields of 255 characters.
    how can i upload this into internal table . From excel sheet or from tab delimeted or any other format? or any special function module is there?  while iam doing this its truncating the datat 255 characters and not uploading the other fields also...
    can any one of you help me out. ASAP
    thnks in advance

    from one of the forum iam just pasting code which it is used in lsmw, try the same logic in ur code hope it can work.
    you have to create multiple lines with do...enddo loop., like this:
    (assuming excel_long_text-text is 924 characters long, 7 lines X 132 char)
    __GLOBAL_DATA__
    data: offset type i,
    text_132(132) type c.
    __BEGIN_OF_RECORD__ Before Using Conversion Rules
    Rule : Default Settings Modified
    Code: /sapdmc/ltxtl = init_/sapdmc/ltxtl.
    CLEAR offset.
    DO 7 TIMES.
    text_132 = excel_long_text-text+offset(132).
    offset = offset + 132.
    __END_OF_RECORD__ After Using Conversion Rules
    Rule : Default Settings Modified
    Code: transfer_record.
    ENDDO.
    also check this
    COMMIT_TEXT
    To load long text into SAP
    READ_TEXT
    To load long text into SAP

  • Upload time data using bdc

    hi hr gurus,
    plz help
    we have 3 shifts like 6-2,2-10,10-6.
    while uploading time data to sap from third party system.
    do we need to take care of the shifts times in BDC?
    or do we need to manage it in configurations
    if you have any code please send me
    regards

    Hi,
    As above said was the also procedure to do the BDC recording.Hope you understand the precedure in detail else have a look @ this.
    1.Goto transaction shdb for recording.
    2.There give the recording name starting with Z or Y letter.
    3.Click "New Recording" button in the left extreme Application tool bar.
    4.You will get a new pop up window Create Recording there give Recording Name"Z r Y" and give the transaction code that you going to record for e.g (PA30,XK01).
    5.Leave the Mode as it  is and click "Start Recording".
    6.Here you will get the transaction code window for e.g if you are  giving PA30 it will call the corresponding transaction.
    7.Start recording by entering the values which you want to record.
    8.After recording save the recording and give back.
    9.There you find the list of process which is done.
    10.Enter your recording name and press enter you will get the program name.
    11.Select the program name and press "program" button in the application tool bar.It will ask abt the prgm name and give read from file.
    12.You will get the coding in se38 for recording.
    13.Edit your program for uploading the flat file from you legacy system to application server by using CALL FUNCTION "GUI_UPLOAD".
    14.Get the flat file and fill it in internal table and pass the internal table values by giving "loop at internal table" after READ DATASET statement.
    15.Select the call transaction for small no. of data for large no. of data we have to use session method.(Refer some links for difference between session and call transaction).
    16.There by executing the program we will get the output which record are created.
    Thanks,
    Sakthi.C
    *Rewards if usefull--*

  • Upload the data using bapi

    hi,
    i am new for bapi , can anyone tell me how to upload data using bapi with example?
    plz tell how to find bapi & how to use in coding to upload the data?

    Hi ,
             To find Bapi There a tcode Bapi which will take you to bapi Explorer From there you can find required
              the Bapi Function Module and its Documentation .
      [  www.sap-img.com/abap/bapi-step-by-step-guidance.htm ]
    [http://www.sappro.com/tag.cfm?session=&tag=bapi%20programming]
    [https://wiki.sdn.sap.com/wiki/display/Snippets/SalesordercreationusingBAPI]
    Regards
    Nilesh

  • How to upload a data using BAPI_SALESORDER_CREATEFROMDAT2 without using LSM

    Hi,
           I want to upload a data from an input file on the presentation server using BAPI_SALESORDER_CREATEFROMDAT2 first uploading the data and then creating sales orders out of it.
           I will be highly obliged if anyone can guide me with it.
           I have tried the same using LSMW got succeeded in posting the idocs correctly and now I want to do it without using LSMW. The main intention of not using LSMW is that after creating sales orders, I want to display the messages related to number of sales order created, Number of records uploaded, Number of records.

    Hi
    BAPI_SALESORDER_CREATEFROMDAT2
    Text
    Sales order: Create Sales Order
    Functionality
    You can use this method to create sales orders.
    You must enter at least sales order header data (via ORDER_HEADER_IN structure) and partner data (via the ORDER_PARTNERS table) as input parameters.
    Enter the item data via the ORDER_ITEMS_IN table. You can allocate item numbers manually, by filling in the relevant fields, or the system does it, according to the settings for Customizing, by leaving the relevant fields blank.
    If you have configurable items, you must enter the configuration data in the ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF and ORDER_CFGS_VALUE tables.
    Credit cards can be transferred via the BAPICCARD structure, on the one hand, data for card identification, on the other, data for a transaction which has taken place in an external system.
    Once you have created the sales order successfully, you will receive the document number (SALESDOCUMENT field). Any errors that may occur will be announced via the RETURN parameter.
    If no sales area has been created in the sales order header, then the system creates the sales area from the sold-to party or ship-to party, who has been entered in the partner table. If a clear sales area cannot be created, you will receive a system message, and the sales order will not be created.
    Notes
    1. Mandatory entries:
    ORDER_HEADER_IN : DOC_TYPE     Sales document type
                       SALES_ORG    Sales organization
                       DISTR_CHAN   Distribution channel
                       DIVISION     Division
    ORDER_PARTNERS..: PARTN_ROLE   Partner role, SP sold-to party
                       PARTN_NUMB   Customer number
    ORDER_ITEMS_IN..: MATERIAL     Material number
    2. Ship-to party:
    If no ship-to party is entered, use the following: Ship-to party =
    sold-to party.
    3. Commit control:
    The BAPI does not have a database commit. This means that the relevant application must leave the commit, in order that can be carried out on on the database. The BAPI BAPI_TRANSACTION_COMMIT is available for this.
    4. German key words:
    The following key words must be entered in German, independantly of
    the logon language:
    DOC_TYPE     Sales document type, for example: TA for standard order
    PARTN_ROLE   Partner role, for example: WE for ship-to party
    Further Information
    You can find further information in the OSS. The note 93091 contains general information on the BAPIs in SD.
    Parameters
    SALESDOCUMENTIN
    ORDER_HEADER_IN
    ORDER_HEADER_INX
    SENDER
    BINARY_RELATIONSHIPTYPE
    INT_NUMBER_ASSIGNMENT
    BEHAVE_WHEN_ERROR
    LOGIC_SWITCH
    TESTRUN
    CONVERT
    SALESDOCUMENT
    RETURN
    ORDER_ITEMS_IN
    ORDER_ITEMS_INX
    ORDER_PARTNERS
    ORDER_SCHEDULES_IN
    ORDER_SCHEDULES_INX
    ORDER_CONDITIONS_IN
    ORDER_CONDITIONS_INX
    ORDER_CFGS_REF
    ORDER_CFGS_INST
    ORDER_CFGS_PART_OF
    ORDER_CFGS_VALUE
    ORDER_CFGS_BLOB
    ORDER_CFGS_VK
    ORDER_CFGS_REFINST
    ORDER_CCARD
    ORDER_TEXT
    ORDER_KEYS
    EXTENSIONIN
    PARTNERADDRESSES
    Regards
    Raj

  • Problem With Uploading IDOC Metadata using IDX2

    Hi Experts,
    While i am uploading IDoc metadata using IDX2 it is showing
    "I::000" information.
    Anybody please help me why i am getting this problem?

    Hi Bhuvan,
    Basicall this problem arises when  user Id being used in the SM59 to trigger the IDoc's from the R3 system , i,e , the XI user id being used in SM59 of R3 does not have the authorizations to post the Idoc.
    Note : 837595 describes the authorizations needed to post and Idoc. Make sure that the user id has the authorizations in this note.
    Activate the authorization check in transaction ST01.
    And also it may be due to insufficient roles for the user which ur using in RFC connection to SAP system.
    Check with the  port in IDX1 whether u have configured corectly.
    Check this link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d19fe210-0d01-0010-4094-a6fba344e098
    PAGE - 11
    Regards,
    Vinod.

  • Problem while uploading master data through two files

    Hi all,
    When i try to upload master data of CUSTOMER with two files , Attribute and Text.
    Text gets uploaded perfectly.
    for Attribute, the data upload is done and psa i can see the exact data. But when i check the CUSTOMER object, i am not able to find the actually Attributs data. Instead those colmns are filed with 'E'.
    Can anybdy please explain me wheret the problem is.
    Thanks..

    Hi Sun,
    First check the data in PSA whether the records are fine or any discrepancy in them. Also check the properties of the COSTUMER object into which you are loading. The properties "type" or the "size" of the object may not be matching with the same in the file.
    Check them and try to load once again.
    Hope this helps u...
    Regards,
    Koundinya Karanam.
    Edited by: koundinya karanam on Jan 15, 2008 12:05 AM

  • What is the Tcodes for Uploading of data using BDC & CATT

    PP members:
    I was going through the <b>cutover activities</b> ,  and what I understood is  we transfer all the legacy system data into SAP before going live
    The data upload follows certain steps (depends on the organizational design load strategies)
    First we upload all the master data ( material master, BOM, W/C's & Routings)
    Then the transaction data ( Ideally speaking, there should no open orders i.e. WIP as on the day of cutoff )
    If the WIP (Work in Process) is unavoidable then the materials consumed shall be treated as <b>materials of the previous stage</b> and necessary adjustments shall be made after cutover day
    At this point, I could not able to understand what does the author mean <b>materials of the previous stage</b>
    Now comming to the uploading of data into SAP from legacy system, we use tools like LSMW, CATT & BDC
    Is it a must to use <b>only LSMW tool</b> to upload master data or any other upload tools are fine
    Lastly,. I am not sure about the Tcode of CATT & BDC
    Summary of the questions:
    1.What does the author mean  <b>material of previous stage</b>, for WIP materials during cutover activities
    2. Is it mandatory to use only LSMW tool for uploading for master data
    3. What are the Tcodes for upload tools CATT & BDC ?
    Thanks for your time
    Suren R

    Dear,
    1.What does the author mean material of previous stage, for WIP materials during cutover activities - as i understood, what is the stage of material..like it must have gone through 2 work centers and other 2 is left. i.e. you need to create Production order with only 2 operation as other 2 is already over. - usually it is done in such a way that we will create Production order and confirm till 2 operations and WIp is calculated so thatb FI will tally the books in SAP and lagacy.
    2. Is it mandatory to use only LSMW tool for uploading for master data - no you can use any tool as required and suits yr requirement
    3. What are the Tcodes for upload tools CATT & BDC- BDC through a prog in SE38. CATT through - SCEM.

Maybe you are looking for

  • Restoring movies from Time Machine backup

    Last night I tried restoring my photos from a Time Machine backup. It appears that all my movies (.avi files) have been restored as .jpg files. When I open the pictures folder, it automatically opens iPhoto and starts importing my pictures. Is there

  • Video option not getting enabled in itunes

    hi, in my itunes properties, when i go to the video tab...i have a problem, i cannot enable it, it wont let me do it, it is not highlighted, so i am unable to upload videos to my ipod, what shud i do. thanks.

  • Headphone jack only works for right half headphones

    I had connected my MacBook Pro to a set of speakers using the headphone jack. Ever since then when I use headphones the jack only outputs sound to the right side. There is no red light coming from the jack and I've also tried resetting the SMC but no

  • Can't access mail in .mac program

    Please help!!! As of 2 days ago, when I go to mac.mail program, I can't access any mail in inbox. I can go through the apple/mac program to see my mail. When I go into mail, it just shows an empty box. I can't get into any of the other folders either

  • How do I plot two variables when neither are time?

    I know how to plot a variable against time, but how do I plot two variables when neither one of them are time against each other. For example if I want to plot say force against distance what is the best approach to use? Thank you. Solved! Go to Solu