Which BAPI to use for Quotation?

I found 2 FM in SAP.
BAPI_QUOTATION_CREATEFROMDATA and BAPI_QUOTATION_CREATEFROMDATA2.
Which is the latest and which is a better option for me?
I find BAPI BAPI_QUOTATION_CREATEFROMDATA is simplier.
Can someone advice.
Thanks
Bye
Colin

I
Hi Colin
BAPI_QUOTATION_CREATEFROMDATA   its easy to give few input parameters required while quotation creation
MPORTING
*"             VALUE(ORDER_HEADER_IN) LIKE  BAPISDHEAD
*"                             STRUCTURE  BAPISDHEAD
*"             VALUE(WITHOUT_COMMIT) LIKE  BAPI_STAND-NO_COMMIT
*"                             DEFAULT SPACE
*"             VALUE(CONVERT_PARVW_AUART) LIKE  BAPIFLAG-BAPIFLAG
*"                             DEFAULT SPACE
*"       EXPORTING
*"             VALUE(SALESDOCUMENT) LIKE  BAPIVBELN-VBELN
*"             VALUE(SOLD_TO_PARTY) LIKE  BAPISOLDTO
*"                             STRUCTURE  BAPISOLDTO
*"             VALUE(SHIP_TO_PARTY) LIKE  BAPISHIPTO
*"                             STRUCTURE  BAPISHIPTO
*"             VALUE(BILLING_PARTY) LIKE  BAPIPAYER
*"                             STRUCTURE  BAPIPAYER
*"             VALUE(RETURN) LIKE  BAPIRETURN1 STRUCTURE  BAPIRETURN
And wher as   BAPI_QUOTATION_CREATEFROMDATA2   More input parameters required to create quotation with new release
IMPORTING
*"     VALUE(SALESDOCUMENTIN) LIKE  BAPIVBELN-VBELN OPTIONAL
*"     VALUE(QUOTATION_HEADER_IN) LIKE  BAPISDHD1 STRUCTURE  BAPISDHD1
*"     VALUE(QUOTATION_HEADER_INX) LIKE  BAPISDHD1X STRUCTURE
*"        BAPISDHD1X OPTIONAL
*"     VALUE(SENDER) LIKE  BAPI_SENDER STRUCTURE  BAPI_SENDER OPTIONAL
*"     VALUE(BINARY_RELATIONSHIPTYPE) LIKE  BAPIRELTYPE-RELTYPE DEFAULT
*"       SPACE
*"     VALUE(INT_NUMBER_ASSIGNMENT) LIKE  BAPIFLAG-BAPIFLAG DEFAULT
*"       SPACE
*"     VALUE(BEHAVE_WHEN_ERROR) LIKE  BAPIFLAG-BAPIFLAG DEFAULT SPACE
*"     VALUE(LOGIC_SWITCH) LIKE  BAPISDLS STRUCTURE  BAPISDLS OPTIONAL
*"     VALUE(TESTRUN) LIKE  BAPIFLAG-BAPIFLAG OPTIONAL
*"     VALUE(CONVERT) LIKE  BAPIFLAG-BAPIFLAG DEFAULT SPAC
Regards,
Seegal

Similar Messages

  • Which BAPI to use for GR for PO reversal (mvt 102)?

    I'm trying for look for a BAPI that can used to post GR for PO reversal, which is mvt 102. I try to use BAPI_GOODSMVT_CREATE to do it, but I encounter errors, I have tried different set of parameters, but all are not sucessful. Below is the few set of parameters that I tried:
    1)
    goodsmvt_code-gm_code       = '06' .
    goodsmvt_header-pstng_date  = sy-datum.
    goodsmvt_header-doc_date    = sy-datum.
    goodsmvt_item-stge_loc   = v_sloc.
    goodsmvt_item-po_number  = v_po.
    goodsmvt_item-po_item    = v_poline.
    goodsmvt_item-move_type  = '101'.
    goodsmvt_item-entry_qnt  = v_qty.
    goodsmvt_item-XSTOB      = 'X'.
    Error message: Goods movement not possible with mvmt type 102
    2)
    goodsmvt_code-gm_code       = '06' .
    goodsmvt_header-pstng_date  = sy-datum.
    goodsmvt_header-doc_date    = sy-datum.
    goodsmvt_item-stge_loc   = v_sloc.
    goodsmvt_item-po_number  = v_po.
    goodsmvt_item-po_item    = v_poline.
    goodsmvt_item-move_type  = '102'.
    goodsmvt_item-entry_qnt  = v_qty.
    Error message: Goods movement not possible with mvmt type 102
    3)
    goodsmvt_code-gm_code       = '01' .
    goodsmvt_header-pstng_date  = sy-datum.
    goodsmvt_header-doc_date    = sy-datum.
    goodsmvt_item-stge_loc   = v_sloc.
    goodsmvt_item-po_number  = v_po.
    goodsmvt_item-po_item    = v_poline.
    goodsmvt_item-move_type  = '102'.
    goodsmvt_item-entry_qnt  = v_qty.
    goodsmvt_item-mvt_ind    = 'B'.
    Error Message: No goods receipt possible for purchase order 5000000017 00001
    Does anybody knows the correct parameters for mvt 102? Or I'm using the wrong BAPI ? Please kindly help.

    Hi,
    the basic thing i guess is first you have reverse the PGI done in may now at the current date as the periods would have been closed for the previous months. And if it is in production then you cannot do a posting in a previous month just because, you would be forced to open the previos periods causing inconsitency in the chronology. But however there is a possibility of allowing posting in previous periods also by using MMRV. Pl try. but make sure it is acceptable for the business and does nt affect any other areas. But it might just do so.
    Use T.code VL09  or use BAPI_GOODSMVT_CANCEL
    refer the link
    https://forums.sdn.sap.com/click.jspa?searchID=3586093&messageID=3598826
    Regards

  • Which FM/BAPI is used for creating repair orders

    Hi,
       Please tell me which FM / BAPI is used for creating service notifications,Repair/Service order and Delivery Docs.How to find out??
    Please someone help me.
    Thanks,
    Neelima

    For service notification you can try using this.
    'BAPI_ALM_NOTIF_CREATE'

  • Which BAPI is using in BUS1012/CRETAE FROM DATA1

    Hi Experts,
    1) Pls. let me know that, Which BAPI is using in the following object,
    BO: BUS1012
    Method - CREATEFROMDATA1
    Message Type - PORDCR1
    Basic Type - PORDCR101.
    2 ) Can I use the same BAPI to create a REPORT prog., for the purpose of uploading my_purchase_orders_internal_table OR is there any complications?
    3) Or Wht is the tx code to see the METHODS?
    thanq
    Edited by: Srinivas on Feb 20, 2008 10:22 AM

    answered in other thread

  • US W4 form in MSS, which BAPIs to use?

    hi,
    I am building adobe interactive form for W4. In our scenario manager will use this form to input W4 information for NEW-HIRE. manger will use the new-hire's employee number to pre-populate some of the data on W4 form and inputs the rest of the data.
    I was wondering if I can get help on which BAPIs to use.
    1) To read employee information - firstname, lastname, ssn based on employee number
    2) To save W4 information based on employee number
    thanks,
    Sanketh

    Got it BAPI_W4W5INFOUS_CREATE.
    thanks

  • Which method is used for event creation

    Dear All,
    My client has more then one Purchase Organization. Workflow for Purchase order release very from pur org to pur org. For example - workflow WS92000030 is trigger when PO is created for India pur org where as workflow WS92000021 is trigger when PO is created for US pur org.  
    I checked and found that same Object Type - BUS2012 & event - RELEASESTEPCREATED is used in all Pur. Org PO release workflow. Also I found in Transaction code - SWETYP that Type linkage activate for  BUS2012, RELEASESTEPCREATED in all the PO workflow - WS92000030 & WS92000021.
    As per my knowledge, event can be created in various way such as Function module, Change document, General status management, Business Transaction Events etc.
    Can some one guide me, how can I found that which method is used for event creation in different pur org?
    How can I fould what is the fuctional module used for event creation if Fuctional module used for event creation. 
    For your information, I can see in T. Code - SWUO that 'Result dependent on a check function module'  for all the workflow - WS92000030, WS92000021 etc.
    Thanks in

    Hi Sahu,
    I dont think they have used the Function module or change document or any other kind of methods to trigger the workflow. This is because RELEASESTEPCREATED method is a standard method and it will be triggered by standard SAP. They can not make changes in standard sap saying RELEASESTEPCREATED should be triggered for this Purchase Org .
    Istead what i think is, they might have given the Event Condition for each workflow.
    In SWDD>> basic settings>> Start Events, we can give condition on triggering the workflow.
    Please check this.
    Regards,
    Gautham

  • Which CKM is used for moving data from Oracle to delimited file ?

    Hi All
    Please let me know Which CKM is used for moving data from Oracle to delimited file ?
    Also is there need of defining each columns before hand in target datastore. Cant ODI take it from the oracle table itself ?

    Addy,
    A CKM is a Check KM which is used to validate data and log errors. It is not going to assist you in data movement. You will need an LKM SQL to File append as answered in another thread.
    Assuming that you have a one to one mapping, to make things simpler you can duplicate the Oracle based model and create a file based model. This will take all the column definitions from the Oracle based model.
    Alternatively, you can also use an ODI tool odiSQLUnload to dump the data to a file
    HTH

  • How to specify which cert to use for software virt server?

    Is there a way to specify which certificate to use for each software virtual server? So, for example a user hitting https://somewhere.com would get the certificate for somewhere.com while the virtual server https://somewhereelse.com would use the certifcate with the name somewhereelse.com in it?

    No, this is not possible due to limitations of the underlying protocols.
    HTTP requests are sent over TCP connections which deal with IP addresses and port numbers (i.e. hardware virtual server properties), not hostnames (i.e. software virtual server properties). The HTTP protocol adds software virtual server support by allowing a client to identify the hostname (e.g. "www.iplanet.com") of the server it wishes to communicate with. This is achieved by including a "Host:" header with each HTTP request.
    Unfortunately, the SSL/TLS protocols require that the web server present its SSL/TLS certificate BEFORE the client sends its HTTP request. Since the software virtual server information is contained in the HTTP request, it is not possible for the server to select different certificates for different software virtual servers.
    You will need to use hardware virtual servers (i.e. virtual servers that have different IP addresses and/or port numbers) if you wish to use distinct SSL/TLS certificates.

  • After reopening Firefox does not remember which desktop was used for each window. Can you help, please.

    I'm using two displays and several desktops on my Mac (OS X 10.9.4).
    When I need to restart Firefox, it remembers to open windows from last session in correct display, but does not remember which desktop was used for each window. So when the application starts, it opens all windows on a desktop which is currently active instead of reopening them on desktops used during the last session. How to fix the issue?

    Hi Nerva,
    Thank you for your question, there is a add on I have been recommended to custom set up of opening windows in new monitors. It's called [https://addons.mozilla.org/en-US/firefox/addon/monitor-master/ Monitor Master].
    However, in regards to the session remembering which monitor the window was open in, in the profile folder there is a file that stores window positions and dimensions. It is called localstore.rdf.
    Please stay tuned for more investigation, as there are definitely bugs on file for similar issues. Pinpointing it is the hard part.

  • HT1918 I am trying to enter the No. Of my VISA card (which I normaly use for payments) in the billing info of my account and it is not accepted. Does anyone have any idea why?

    I am trying to enter the No. Of my VISA card (which I normaly use for payments) in the billing info of my account and it is not accepted. Does anyone have any idea why?

    JarleEkanger wrote:
    How about this? Use Delete array subset to extract chunks for averaging, and a shift register to retain the remaining array.
    It is typically not advisable to use "delete from array" in a tight loop. The constant memory reallocations due to array resizing are probably inefficient.
    Here's one simple way to do it..
    (If the number of points is not divisible by 10, the excess tail is discarded. You can easily modify that behavior if desired.)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    averages of 10.png ‏5 KB
    averages of 10.vi ‏9 KB

  • Which cable should use for Sony DV connect to iMac ?

    Which cable should use for Sony DV(IEEE 1394)connect to iMac ?

    If your iMac has just the FireWire 800 connection, you will need the 9 pin to 4 pin cable.
    http://www.cwol.com/firewire/firewire-800-1394b-cables.htm
    If your iMac has the FireWire 400 connection, you will need the 6 pin to 4 pin cable.
    http://www.radtech.us/Products/ProCableFW400800.aspx
    Links are to illustrate examples. You should be able to pick them up at most computer stores.

  • I have a Comcast system and am going through a Bose amp for sound.  The comcast box has an HDMI port which I've used for the Apple TV connection.  Nothing works! Help.

    have a Comcast system and am going through a Bose amp for sound.  The comcast box has an HDMI port which I've used for the Apple TV connection.  Nothing works! Help.

    Thanks.  Thought that would be the solution but for my wall mounted TV it's going to be a problem but many thanks for your reply.....

  • Which function is used for  adding days to given month

    which function is used for  adding days to given month

    Hi Jagrut,
    Good ... Check out the following examples
    <b>Get a date</b>
    DATE_GET_WEEK Returns week for a date
    WEEK_GET_FIRST_DAY Returns first day for a week
    RP_LAST_DAY_OF_MONTHS Returns last day of month
    FIRST_DAY_IN_PERIOD_GET Get first day of a period
    LAST_DAY_IN_PERIOD_GET Get last day of a period
    RP_LAST_DAY_OF_MONTHS Determine last day of month
    <b>Date calculations</b>
    DATE_COMPUTE_DAY Returns a number indicating what day of the week the date falls on. Monday is returned as a 1, Tuesday as 2, etc.
    DATE_IN_FUTURE Calculate a date N days in the future.
    RP_CALC_DATE_IN_INTERVAL Add days/months to a date
    RP_CALC_DATE_IN_INTERVAL Add/subtract years/months/days from a date
    SD_DATETIME_DIFFERENCE Give the difference in Days and Time for 2 dates
    MONTH_PLUS_DETERMINE Add or subtract months from a date. To subtract a month, enter a negative value for the 'months' parameter.
    DATE_CREATE Calculates a date from the input parameters:
    Example: DATE_CREATE
    CALL FUNCTION 'DATE_CREATE'
    EXPORTING
       anzahl_jahre  = 1
       anzahl_monate = 2
       anzahl_tage   = 3
       datum_ein     = '20010101'
    IMPORTING
       datum_aus     = l_new_date.
       Result:
       l_new_date = 20020304
    Example: MONTH_PLUS_DETERMINE
    data: new_date type d.
    CALL FUNCTION 'MONTH_PLUS_DETERMINE'
    EXPORTING
    months = -5 " Negative to subtract from old date, positive to add
    olddate = sy-datum
    IMPORTING
    NEWDATE = new_date.
    write: / new_date.
    <b>Hollidays</b>
    HOLIDAY_GET Provides a table of all the holidays based upon a Factory Calendar &/ Holiday Calendar.
    HOLIDAY_CHECK_AND_GET_INFO Useful for determining whether or not a date is a holiday. Give the function a date, and a holiday calendar, and you can determine if the
    date is a holiday by checking the parameter HOLIDAY_FOUND.
    Example: HOLIDAY_CHECK_AND_GET_INFO
    data: ld_date                 like scal-datum  default sy-datum,
          lc_holiday_cal_id       like scal-hcalid default 'CA',
          ltab_holiday_attributes like thol occurs 0 with header line,
          lc_holiday_found        like scal-indicator.
    CALL FUNCTION 'HOLIDAY_CHECK_AND_GET_INFO'
      EXPORTING
        date                               = ld_date
        holiday_calendar_id                = lc_holiday_cal_id
        WITH_HOLIDAY_ATTRIBUTES            = 'X'
      IMPORTING
        HOLIDAY_FOUND                      = lc_holiday_found
      tables
        holiday_attributes                 = ltab_holiday_attributes
      EXCEPTIONS
        CALENDAR_BUFFER_NOT_LOADABLE       = 1
        DATE_AFTER_RANGE                   = 2
        DATE_BEFORE_RANGE                  = 3
        DATE_INVALID                       = 4
        HOLIDAY_CALENDAR_ID_MISSING        = 5
        HOLIDAY_CALENDAR_NOT_FOUND         = 6
        OTHERS                             = 7.
    if sy-subrc = 0 and
       lc_holiday_found = 'X'.
      write: / ld_date, 'is a holiday'.
    else.
      write: / ld_date, 'is not a holiday, or there was an error calling the function'.
    endif.
    Checking dates
    DATE_CHECK_PLAUSIBILITY Check to see if a date is in a valid format for SAP. Works well when validating dates being passed in from other systems.
    Converting dates
    DATE_CONV_EXT_TO_INT Conversion of dates to SAP internal format e.g. '28.03.2000' -> 20000328 Can also be used to check if a date is valid ( sy-subrc <> 0 )
    Function to return literal for month
    he table you want to use is T247. You can also use the function MONTH_NAMES_GET.
    You can also try table T015M. It has the month number in it's key.
    Formatting
    DATUMSAUFBEREITUNG Format date as the user settings
    Other
    MONTH_NAMES_GET It returns all the month and names in repective language.
    Good Luck and thanks
    AK

  • Is there a custom function available which can be used for logging errors captured in a sp in a sql table

    Is there a custom function  available which can be used for logging errors captured in a sp during and after execution in a sql table?
    Basically we  would like to utilize such function  in every sp and log errors of each sp in a error log table
    Mudassar

    Thanks .
    I was able to write this however I am thinking I am missing something
    CREATE FUNCTION testfunction1()
    RETURNS @temp_error TABLE (
    id int identity(1,1),
    procedure_name varchar(255),
    line_number int,
    error_number int,
    error_message varchar(max),
    error_state int,
    error_severity int,
    occurence_datetime datetime default current_timestamp,
    user_name sysname default suser_name(),
    login_name sysname default suser_name()
    AS
    BEGIN
    insert @temp_error(procedure_name,line_number,error_number,error_message,error_state,error_severity)
    select error_procedure(),error_line(),error_number(),error_message(),error_state(),error_severity()
    RETURN;
    END;
    CREATE TYPE test_type AS TABLE(
    id int identity(1,1),
    procedure_name varchar(255),
    line_number int,
    error_number int,
    error_message varchar(max),
    error_state int,
    error_severity int,
    occurence_datetime datetime default current_timestamp,
    user_name sysname default suser_name(),
    login_name sysname default suser_name()
    GO
    create proc usp_error_test
    @test_type AS test_type READONLY
    as
    begin
    begin try
    select 1/0
    end try
    begin catch
    select * from testfunction1(@test_type)
    end catch
    end
    Mudassar

  • Which frame is used for movie preview?

    Which frame is used for a home movie preview, takin with an iPhone 4s?  I guess the question is, is there a way to specify the frame of the movie which is used for the preview?
    -Thanks

    I would have a look at
    Gallery
    Demo or at the site of a friend of mine
    http://www.schutte.name

Maybe you are looking for

  • After upgrade to outlook 2013 Contacts have the default picture in reading pane

    I'm using Windows 8 on a domain (using a domain account not a Microsoft account) connecting to Exchange, all my Contacts were outlook contacts with pictures and other data, I could see the picture of the contact in the reading pane and people pane wh

  • Do I Need My MacBook Air???

    I am a retired teacher with money problems.  I sub now, and also do iPad Resource Nights at my local mental hospital. I have 7 iPads of various kinds. I need to keep them for my work. This summer, I bought the new 13" MacBook Air with the fast proces

  • Problem setting up networking in Solaris 8

    Hi, I have been struggling for a couple of days with the following problem: I am running Solaris 8 on an Intel networked machine. The NIC is D-Link DFE-530TX+, I had to download a beta driver for Solaris 8 from Realtek (this NIC uses a Reltek 8139 ch

  • Problems with Signed Applets

    Hello ! I have an applet program that displays the content of a batch file in the Applet window. To sign the Applet I have converted the corresponding class file to a jar . Then using keytool & jarsigner... I had signed it . I tried to restrict the e

  • Run software update in non-admin account?

    I did some searching through past posts, but the most recent one I found was several years old. Is there any way to run Software Update automatically in a non-admin account?  I run in a non-admin account unless there's some task that really needs adm