BDC Program for Sales order and Enquiry

Hi All,
Pls can you help me.
To create sales order and enquiry I have bapis .
BAPI_SALESORDER_CREATEFROMDAT2
BAPI_INQUIRY_CREATEFROMDATA2
but i want BDC Programs for that bapis
pls can you help me
thanks
mars

Hi Krishna ,
Please check the below links .
[http://www.sap-basis-abap.com/abap/bapi-sample-to-upload-data-from-flat-file-to-va01.htm]
[http://abapreports.blogspot.com/2008/06/bapi-sample-code-for.html] -- > Select and Copy from this one.

Similar Messages

  • Deletion Utility Program for Sales Order.

    Hi Experts,
    We decided to have a deletion utility program for Sales orders. 
    The program should take sales order numbers from a source file, and delete one by one, also the program should generate process log details at the end.
    For creating the above program i need to create a new program or there is any BAPI for deleting the Sales Orders.
    Thanks & Regards,
    Ramana

    Hi,
    Possible UPDATEFLAGS:
    BAPISDH1X-UPDATEFLAG = 'D'.
    U = change
    D = delete
    I = add
    If you go to SE37 give BAPI_SALESORDER_CHANGE --> Display ---> In application tool bar Last Buttion Function Module Documentaion --> Here you get some usefull information.
    Dont Change the BAPI Just pass the Header X = 'D'.
    Try this Sample Program.
    PARAMETERS: p_vbeln  TYPE vbap-vbeln OBLIGATORY.
    DATA:  i_hdrx TYPE bapisdh1x.
    i_hdrx-updateflag = 'D'.
      CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          salesdocument     = p_vbeln
          order_header_inx  = i_hdrx
        TABLES
          return            = i_ret.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      LOOP AT i_ret.
        WRITE / i_ret-message.
      ENDLOOP.
    Thanks,
    Durai.V
    Edited by: Durai V on Aug 19, 2008 8:22 AM

  • Standard Driver Program for Sales Order Confirmation

    Hi,
    My requirement is to develop smartforms and driver program for Sales Order Confirmation.
    For doing this, I found there is a standard smartforms R2RBL_SDORC_L for Sales Order Confirmation. So I thought I can take a Z copy of this smartform and modify it to my requirement. So that we can use the Import parameters (Form Interface parameters) of the form R2RBL_SDORC_L. This will also reduce the work of writing the code in Driver program.
    Now, I need to know what is the standard driver program for this form R2RBL_SDORC_L. If I can find the program name, I can take a Z copy of that and enhance it to my requirement.
    Ultimately I believe I can reduce the work of writing code to fetch all Sales order details.
    Can anyone let me know the standard driver program name for the form R2RBL_SDORC_L?

    Can anyone share how you approached in developing smartforms and driver program for Sales order confirmation?
    Note: This program and smartforms will be assigned in the NACE transaction.

  • Driver program for Sale Order

    Hi all,
    Can any body tell me Standard Driver program for Sale Order Smart form?
    Useful answer will be rewarded
    Thanks in advance,
    Sachin.

    Hi Sachin,
    you can do this by,
    <b> NACE</b> (tocde) -->  select  <b>Sales</b> --> click <b>output types</b> -->
    select any standard output type --> double click on processing routines.
    You can see the program name
    For this it is -
    <b>RVADOR01</b>
    Reply me if there is any queries

  • VD05 - Customer master record blocked for sales orders and billing

    Hi,
    I have a scenario whereby I have blocked a customer master record for sales orders and billing using transaction VD05, but it still allows you to create sales orders and post billing documents.
    What is the reason for this?
    Regards
    Gandi

    Hi,
    Block the customer for the sales order, delivery and Billing for the specific sales area in vd05
    and try out,
    Regards
    Pradeep BV.

  • CRM - R-3 integration for sales order and billing

    Hi All,,
    Please could you help me to set up the connectivity between CRM and R-3.
    This will be for Sales order and billing.
    Regards,
    Piyush

    Hi All,
    Thanks for your information.
    I have created a site, subscription, connectivity is established between R-3 and CRM through RFC destination.
    What else do i need to do, Could you please share <b>step by step</b> information for the whole scenario 'Sales order in CRM to R-3 and Billing info from R-3 to CRM ?
    This will help me a lot to do things.
    If you have documents for this please mail me at [email protected]
    Regards,
    Piyush

  • Standard(Smartform) Program for Sales order Confirmation

    Hi Experts,
    I have a new Requirement on Smartforms,
    It is Sales order confirmation, Can Any one say what is Revelant program for this Requirement...
    (RVORDER01) is for SAP SCript But i Required Smartform Program..???
    Thanks,,
    ksreddy.

    I Required a program for sales order confirmation ..
    Resolved..!!
    Thanks,

  • Driver program for sales order in smartforms?

    whatst he driver prog for sales order in smartforms?
    how to attach my smart form to driver prog
    thanks  & regards
    lakshmi

    Hi,
      Driver Program is the program which is used to link the form and the ABAP program.
    U have to use the FM 'SSF_FUNCTION_MODULE_NAME' to give the form name.
    Here 'Z_TRNG_SMART_MUL_PURCH_T012' is the form name.
    sf_formname = 'Z_TRNG_SMART_MUL_PURCH_T012'.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = sf_formname
        IMPORTING
          fm_name            = sf_fm_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 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.
      CALL FUNCTION sf_fm_name
        EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
      CONTROL_PARAMETERS         =
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
          v_ekpo                     = v_ekpo
         v_adrnr              =  v_adrnr
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
        TABLES
          it_ekko                    = it_ekko
          it_ekpo                    =  it_ekpo
    EXCEPTIONS
      FORMATTING_ERROR           = 1
      INTERNAL_ERROR             = 2
      SEND_ERROR                 = 3
      USER_CANCELED              = 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.
    Thanks & Regards,
    Roja Velagapudi.

  • Update KOMV-KBETR field for sales order and billing

    I would like to update the KOMV-KBETR (condition amount or percentage) under condition tab for both Sales order and billing.
    example:There are two condition types ZA00 and ZB00 and need to get the KBETR value from ZA00 and add it to KBETR value of ZB00 and update the sum in KBER value of ZB00.
    1. creation of sales order & billing.
    2. Change of sales order & billing.
    3. For single & multiple line items in both sales order & billing.
    4. during updation of price in the change mode of sales order & billing.
    5.When user click on Update button in the condition tab(i.e., when clicked on Carryout new pricing)
    I tried with the VOFM routine but as the routine is triggering multiple times the sum is calculated again and again.For that I set flags also.It is working for sales orders but for billing creation the field XKOMV-KBETR is cleared after this routine.
    So I would like to know are there any EXITS for this scenario or any one entountered the similiar issue which I am facing.

    Hi Brad,
       It is an Client requirement.So need to do the addition of that condition types.
    Can you please let me know the configuration point where we can do it and the condition type which we need to update the Rate/Amount value.ie., KOMV-KBETR is and Price list value and not the subtotal one.
    Thanks,
    Srilakshmi Lagisetty.

  • Authority check for sales order and stock transport order

    In my code i have a requirement to enter sales order and Stock transport order. However i want that a WM resource should not be allowed to enter sales order and an SD resouce should not be allowed to enter stock tranpsort order. Please suggest.

    Hi,
    Another way to solve this is create a Z table with field user name and Resource type and compare the user id ( sy-uname) with the Z table and allow accordingly.
    In production environment controlling authorization in this approch is much easier.
    Hope this helps.
    Regards
    Bikas

  • Smart form and its driver program for sales order

    Hi Experts,
    Please give me the standard Smart Form name along with its Standard driver program.
    I already have RVADOR01 program which is a driver program for SAP Script RVORDER01.
    But I need standard smart form with its standard driver program for VA02, VA03 (Sales order) transaction.
    <REMOVED BY MODERATOR>
    Thanks In Advance
    Ram
    Edited by: Alvaro Tejada Galindo on Apr 8, 2008 12:10 PM

    Hi Ramachandra Babu,
                  Welcome To SDN!!
    Check output types in NACE tcode...
    Sample example,
    Goto Transaction NACE --> Select Application V1(Sales) --> Click on Output Types --> Select the output type as BA00 (as generally BA00 is the output type associated with Sales Order ) --> Double click on the Processing Routines folder on the left and it will display the Form name and the corresponding driver programs name.
    Regards
    Kiran

  • Program for Sales Order cretaion using BAPI BAPI_SALESORDER_CREATEFROMDAT2

    Hi All,
    Can any one please give me one modal program which uses the BAPI 'BAPI_SALESORDER_CREATEFROMDAT2' to create Sales Orders...
    Thank You very much in advance.....................

    Hi Krishna ,
    Please check the below links .
    [http://www.sap-basis-abap.com/abap/bapi-sample-to-upload-data-from-flat-file-to-va01.htm]
    [http://abapreports.blogspot.com/2008/06/bapi-sample-code-for.html] -- > Select and Copy from this one.

  • Standard driver program for sale order

    i am working with sale order confirmation,(smartforms)
    is there any pre defined driver program for this.Not RVador01/
    and i need to display the output in the form of a print out or PDF for sending the mail.
    So please give me the logic for this.

    Hi,
    have a look at table <b>TNAPR</b> to check the print program assigned to your smartform/sapscript.
    Best regards.

  • Performance tuning for Sales Order and its configuration data extraction

    I write here the data fetching subroutine of an extract report.
    This report takes 2.5 hours to extract 36000 records in the quality server.
    Kindly provide me some suggestions for performance tuning it.
        SELECT auart vkorg vtweg spart vkbur augru
                  kunnr yxinsto bstdk vbeln kvgr1 kvgr2 vdatu
                  gwldt audat knumv
                  FROM vbak
                  INTO TABLE it_vbak
                  WHERE vbeln IN s_vbeln
                  AND erdat IN s_erdat
                  AND  auart IN s_auart
                  AND vkorg = p_vkorg
                  AND spart IN s_spart
                  AND vkbur IN s_vkbur
                  AND vtweg IN s_vtweg.
      IF NOT it_vbak[] IS INITIAL.
        SELECT mvgr1 mvgr2 mvgr3 mvgr4 mvgr5
               yyequnr vbeln cuobj
               FROM vbap
               INTO TABLE it_vbap
               FOR ALL ENTRIES IN it_vbak
               WHERE vbeln  =  it_vbak-vbeln
               AND   posnr = '000010'.
        SELECT bstkd inco1 zterm vbeln
               prsdt
               FROM vbkd
               INTO TABLE it_vbkd
               FOR ALL ENTRIES IN it_vbak
               WHERE vbeln  =  it_vbak-vbeln.
        SELECT kbetr kschl knumv
               FROM konv
               INTO TABLE it_konv
               FOR ALL ENTRIES IN it_vbak
               WHERE knumv  =  it_vbak-knumv
               AND   kschl  =  'PN00'.
        SELECT vbeln parvw kunnr
               FROM vbpa
               INTO TABLE it_vbpa
               FOR ALL ENTRIES IN it_vbak
               WHERE vbeln  =  it_vbak-vbeln
               AND parvw IN ('PE', 'YU', 'RE').
      ENDIF.
      LOOP AT it_vbap INTO wa_vbap.
        IF NOT wa_vbap-cuobj IS INITIAL.
          CALL FUNCTION 'VC_I_GET_CONFIGURATION'
               EXPORTING
                    instance            = wa_vbap-cuobj
                    language            = sy-langu
               TABLES
                    configuration       = it_config
               EXCEPTIONS
                    instance_not_found  = 1
                    internal_error      = 2
                    no_class_allocation = 3
                    instance_not_valid  = 4
                    OTHERS              = 5.
          IF sy-subrc = 0.
            READ TABLE it_config WITH KEY atnam  =  'IND_PRODUCT_LINES'.
            IF sy-subrc  =  0.
              wa_char-obj  =  wa_vbap-cuobj.
              wa_char-atnam  =  it_config-atnam.
              wa_char-atwrt  =  it_config-atwrt.
              APPEND wa_char TO it_char.
              CLEAR wa_char.
            ENDIF.
            READ TABLE it_config WITH KEY atnam  =  'IND_GQ'.
            IF sy-subrc  =  0.
              wa_char-obj  =  wa_vbap-cuobj.
              wa_char-atnam  =  it_config-atnam.
              wa_char-atwrt  =  it_config-atwrt.
              APPEND wa_char TO it_char.
              CLEAR wa_char.
            ENDIF.
            READ TABLE it_config WITH KEY atnam  =  'IND_VKN'.
            IF sy-subrc  =  0.
              wa_char-obj  =  wa_vbap-cuobj.
              wa_char-atnam  =  it_config-atnam.
              wa_char-atwrt  =  it_config-atwrt.
              APPEND wa_char TO it_char.
              CLEAR wa_char.
            ENDIF.
            READ TABLE it_config WITH KEY atnam  =  'IND_ZE'.
            IF sy-subrc  =  0.
              wa_char-obj  =  wa_vbap-cuobj.
              wa_char-atnam  =  it_config-atnam.
              wa_char-atwrt  =  it_config-atwrt.
              APPEND wa_char TO it_char.
              CLEAR wa_char.
            ENDIF.
            READ TABLE it_config WITH KEY atnam  =  'IND_HQ'.
            IF sy-subrc  =  0.
              wa_char-obj  =  wa_vbap-cuobj.
              wa_char-atnam  =  it_config-atnam.
              wa_char-atwrt  =  it_config-atwrt.
              APPEND wa_char TO it_char.
              CLEAR wa_char.
            ENDIF.
        READ TABLE it_config WITH KEY atnam  =  'IND_CALCULATED_INST_HOURS'.
            IF sy-subrc  =  0.
              wa_char-obj  =  wa_vbap-cuobj.
              wa_char-atnam  =  it_config-atnam.
              wa_char-atwrt  =  it_config-atwrt.
              APPEND wa_char TO it_char.
              CLEAR wa_char.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDLOOP. " End of loop on it_vbap
    Edited by: jaya rangwani on May 11, 2010 12:50 PM
    Edited by: jaya rangwani on May 11, 2010 12:52 PM

    Hello Jaya,
    Will provide some point which will increase the performance of the program:
    1.     VBAK  & VBAP are header & item table. And so the relation will be 1 to many. In this case, you can use inner join instead multiple select statement.
    2.     If you are very much confident in handling the inner join, then you can do a single statement to get the data from VBAK, VBAP & VBKD using the inner join.
    3.     Before using for all entries, check whether the internal table is not initial.
    And sort the internal table and delete adjacent duplicates.
    4.     Sort all the resultant internal table based on the required key fields and read always using the binary search.
    You will get a number of documents where you can get a fair idea of what should be done and what should not be while doing a program related to performance issue.
    Also you can have number of function module and BAPI where you can get the sales order details. You can try with u2018BAPISDORDER_GETDETAILEDLISTu2019.
    Regards,
    Selva K.

  • Material substitution program for sales order

    Hi,
    I need to do a program with these requirements:
    <<The substitution program (single process) must run for all sales orders as soon as Delivery block is set to VA and also when delivery block is removed.
    Advice : Trigger program using an output type determined in the sales order>>
    I need to know how to trigger this single process using "output".
    Has any of u done this before? I've no idea where to start! Can anyone help me?
    Tarick.

    Hi ajit
    In VA05 itself you can see Ordered  qty, Open order qty and confirmed quantity , Delivered qty , Delivered  date  .Even  Laxmipathi also said same thing and  i also agree with his words.
    Regards
    Srinath

Maybe you are looking for

  • Events in  Alv

    hi Experts    i hav e requirement on   report in  alv oops . in this  , let me know the details   how  to   display the  events  liken "top-of-page", end of page and   list header , list footer  in oops, please provide the suitable  code Regards Span

  • Problem with fan Trap.

    Hi all, I am having a problem resolving fan trap. I am having a universe build over a MY SQL database. The universe totaly consists of 4 tables and are related in the following way. "A one to many B one to many C many to one D" There are many 1-may j

  • ITunes won't open on Mac 10.6.7

    My iTunes 10.2.1 crashes on startup. This is the error message I get: Process: iTunes [1222] Path: /Applications/iTunes.app/Contents/MacOS/iTunes Identifier: com.apple.iTunes Version: ??? (???) Build Info: iTunes-10210101~1 Code Type: X86 (Native) Pa

  • Update fixed decimal value

    I am trying to do a setColumnValue("ColumnName", value) for a fixed decimal field. The format of the field is defined by: TopStratRowSet.setFormatterInfo(new FormatterInfo(DefaultFormatManager.NUMERIC_VALUE,"###0.00")); I want to set the top value th

  • OWB Error when deploying objects

    Hi we recently upgraded OWB 10.2.0.2 to 10.2.0.3 and now I am getting the following error when I deploy objects. Our platform is on solaris and oracle 10.2 and we are NOT using RAC. Error ORA-29532: Java call terminated by uncaught Java exception: ja