Req. to know, to which to pass prmontl discnt in  BAPI_SALESORDER_SIMULTE

Hi SAP Gurus,
I want to get the trade promotional discount when order is simulating. Hence i am using the bapi  BAPI_SALESORDER_SIMULATE , and i don't know to which field i have to pass  promotional codes in this BAPI .
Please let me know to which field i have to pass the promotional codes to ge the promotional discounts.
Thanks in advance.
Regards
Harikrishna

SEE THE FOLLOWING EXAMPLE:
REPORT z_salesorder_simulate.
DATA: order_header_in LIKE bapisdhead,
order_items_in LIKE TABLE OF bapiitemin,
return LIKE bapireturn,
wa_order_items_in LIKE LINE OF order_items_in,
order_partners LIKE TABLE OF bapipartnr,
wa_order_partners LIKE LINE OF order_partners,
order_items_out LIKE TABLE OF bapiitemex,
wa_order_items_out LIKE LINE OF order_items_out.
order_header_in-doc_type = 'TA'.
wa_order_items_in-material = '000000000000000001'.
wa_order_items_in-req_qty = '1000'.
APPEND wa_order_items_in TO order_items_in.
wa_order_partners-partn_role = 'AG'.
wa_order_partners-partn_numb = '0000000001'.
APPEND wa_order_partners TO order_partners.
Execute Function Module BAPI_SALESORDER_SIMULATE
CALL FUNCTION 'BAPI_SALESORDER_SIMULATE'
EXPORTING
order_header_in = order_header_in
IMPORTING
return = return
TABLES
order_items_in = order_items_in
order_partners = order_partners
order_items_out = order_items_out.
The return structure gives any error messages
WRITE: return-message.
Print out the order items
LOOP AT order_items_out INTO wa_order_items_out.
WRITE: wa_order_items_out-material,
wa_order_items_out-short_text,
wa_order_items_out-subtotal_2.
ENDLOOP.
Edited by: krupa jani on Nov 24, 2008 7:00 AM

Similar Messages

  • BAPI-Meter read uplaod which will pass all validations .

    Hi ,
    Is there any BAPI  or FM available for Meter read uplaod which can pass all the validation and submit the meter read with status 01 (billable ) .
    Thanks
    rajeev

    Hi Rajeev & William,
    We can configure meter reader note at SAP Utilities --> Device Management --> Meter Reading --> Meter Reading Result --> Entry --> Define Notes from Meter Reader.
    In this configuration we can set - 03 (Use unvalidated meter reading) as Control of follow-up action against configured meter reader note.
    By doing this, No validations will be performed for the meter reading. It is set directly to plausible and can be billed.
    We can pass meter reader note to BAPI function module.
    Let me know if you need any further details.
    Regards,
    Avinash

  • DOES ANYONE KNOW HOW TO GET PASSED MY PASSWORD LOGIN on a mac pro? I FORGOT IT. (yosemite 10.10.1)

    DOES ANYONE KNOW HOW TO GET PASSED MY PASSWORD LOGIN on a mac pro? I FORGOT IT. (yosemite 10.10.1)

    User Tip:  Reset the user password in OS X Lion, Mountain Lion, Mavericks and Yosemite
    Posting in CAPS LOCK Is often seen as screaming and is not appreciated.  It's also very hard to read.

  • How can I in IMAQ Vision know to which blob a pixel belongs to?

    Hi,
    How can I in IMAQ Vision know to which blob (particle) a pixel belongs to?
    I use IMAQ Complexmeasure and Complexparticle to get data about every particle in the image and then use this data (position, length and direction) to see if two particles "belong to each other". I want to start from one particle and from the data (position, length and direction) find a search area and in that area look for pixels (binary image), if I find one I want to know to which blob that pixel belongs to. (Programmatically) How can I do that?
    Deeper explanation: The image I send is just a small part of a bigger image. As you can see there are a lot of streaks on the image, they are generated by small particle
    s moving in the air. I use a long exposure time and have a chopper in front of the camera that will generate a short streak, a middle long streak and a long streak. By doing this I can see how the air is moving around in a room. As you can see I must know which streaks are generated by the same particle. As I said earlier I use IMAQ Complexmeasure and Complexparticle to get data about every blob (streak in this case) in the image and then use this data (position, length and direction) to see if two streaks "belong to each other". I start from one streak and from that streaks data (position, length and direction) I can find a search area and in that area look for pixels ( hopefully belonging to a streak generated by the same particle ), if I find a pixel I want to know to which streak (blob) that pixel belongs to so I can look at this new streaks data (length, direction) to verify if these two streaks are generated by the same particle. So my questions are:
    How can I see to which strea
    k (blob) an individual pixel belongs to? (programmatically)
    What is the best way to create a search area, ROI? (programmatically)
    What is the best way to look for a pixel in the search area, IMAQ GetPixelValue? (programmatically)
    Thanks
    Pelle
    Attachments:
    streak.jpg ‏6 KB
    scan0001.PNG ‏66 KB

    Pelle,
    This is an interesting project. It will be difficult to use blob processing, because there are a large number of intersecting paths.
    A few ideas to start with:
    For each particle, the path is essentially the same brightness. I would start with white and gradually decrease the threshold level to locate the different blobs.
    Also, for each particle, the alignment is roughly the same. I would only consider blobs that have about the same orientation of the long axis. They don't seem to make sudden right angle turns.
    I would search by doing a particle analysis, select a particle and search for related particles by comparing the centroid of nearby particles to see if they fall in the area +/- 15 degrees from the long axis orientation of the
    particle. You should be able to locate a best choice at each end of the particle.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • I would like to  know through which ref document they have created returns.

    Order -deliverypgibilling
    When they take goods return I would like know with ref which document they have taken return.
    They created return order I am confusing they have taken with ref to sales doc or delivery or billing.
    I would like to know  through which ref document they have created returns.
    Where can I see this one?

    Hi Aditya,
    First of all I would like to clarify one thing.
    Returns sales order can be created with reference or with out reference.
    Genereally Returns order will be created with reference to sales order or invoice document no.
    The reference document no can be seen in the document flow of the return document.
    Regards,
    Mallesh.
    Edited by: Mallesh on Apr 23, 2008 11:25 AM

  • Please help me know to which carrier my iPhone is locked to! All possible details provided.

    My 16GB Black iPhone Model number: MC318LL; IMEI: 012657005583409 Now I want to know to which CARRIER my iPhone is locked! As per the model number I found my iPhone was purchased in Singapore. Please help me out. Thank you in advance.

    There is no way to tell based on the information you provided.
    According to this page: http://support.apple.com/kb/ht1937
    ALL iPhones (the 4 at least) sold through authorized channels in Singapore are unlocked. If you got it on the gray market, as opposed to from one of the three authorized carriers or directly from Apple, and you're getting an "unsupported SIM" message, then you got taken for a ride.

  • How can I know in which Tables are the fields stored

    Hi,
    In transaction FSE3 Display Financial Version
    Statement Version, if I drilldown in details, I can
    see Item No, Chart of Acc, From Accountm To Account D,
    C.
    when I do a F1 on the fields, I can see that it is a
    structure. How can I know in which Tables are the
    fields store?

    Hi Ankit,
    There are no rules or guidelines for finding the table but i will share some of the tips used generally.........but i am not sure if we can do it for a tree structure..but try anyways....
    Double click on the structure name seen on the F1 pop up window...
    in the structure screen, try to analyse the field which is very important something like a key in that set of fields or do the same for the fields which we feel are more important,then click on the domain for that field....once in the domain..click on the "where used list for the domain" on the top...
    it will display a pop up -> select only "table" and then press "Tick/OK"..A list will be displayed with the data element and table name ..from this we need to find out the right one we need either by going for text of the table or going through each and every one
    It takes time but does the job.....
    Regards
    Byju

  • How to know on which time dimension level we are ?

    Hello,
    I would like to know is there a variable or a mean to know dynamically on which time dimension level we are in order to use that in a CASE WHEN clause ?
    By using a sort of aggregation tables in which one of the column contains the name of the level, I could know on which level I am but I can't use that for drill down. What I mean :
    Tab1 :
    'Year' as typelevel, year
    Tab2 :
    'Month' as typelevel, year, month
    In BMM, I have made one logical table with as Source tab1 and tab2 and as columns typelevel, year and month.
    tab1 has in content column the year level
    tab2 has in content column the month level.
    So when in Answers I retrieve
    typelevel, year
    the result is : 'Year', 2008
    and when I request : typelevel, year, month
    the result is : 'Month', 2008, 1
    But if I want to drill from year to month in order to have :
    'Year', 2008
    and then after drill
    'Month', 2008, 1
    it is impossible as a filter on typelevel='Year' is added on the month level, so it retrieves 0 columns.
    If someone has an idea on how to do that it would be very great.
    Thanks in advance for your help.

    Hi Supriya,
    OOTB I think you can use SharePoint designer, but I would suggest  custom code to iterate to all pages, and get the lists that are associated with these pages.
    http://stackoverflow.com/questions/633633/sharepoint-how-can-i-find-all-the-pages-that-host-a-particular-web-part
    another one would be if those lists were never used and you can check for list with empty data.
    I would use Get-SPLists to get all of the lists to check for zero items.
    http://blogs.technet.com/b/heyscriptingguy/archive/2010/09/15/use-windows-powershell-to-manage-lists-in-sharepoint-2010.aspx
     http://sharepointrelated.com/2011/11/28/get-all-sharepoint-lists-by-using-powershell/
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • I have lock iPhone 5 from Japan, i don't know from which carrier it  is belongs to currently I am in Saudi Araiba, how can i unlock the phone and use here)

    I have lock iPhone 5 from Japan, i don't know from which carrier it  is belongs to. currently I am in Saudi Arabia, how can i unlock the phone and use here)
    <Personal information edited by Host>

    You can't.

  • How do we know that which processing Class doing what functionality ?

    Hi SAP HR Experts .
    Q:-1 How do we know that which processing Class doing what functionality ?
    Like : Processing class 1 , 2 ,... etc .
    Similerly Simulation Class is On (Check Box is Ticked) then what impact we occur ?
    Kind Regards : rajneesh

    Hi Rajneesh,
    The best way to understand the processing class is to go thru each and every class in table T512W_D ( Go to SM30 -> t512w_d ).Here in this table you will have the wagetypes ,just double click on the wagetypes and you will find the screen with processing classes. Just go thru each and every class by f1 . Each class is having its own importance and implication.
    Same with Cumulation class. Go to SM30 -> enter T54C3. Follow the same logic here too, and try to analyse the max thru f1.
    This is how we can understand the logic.
    Regards,
    Sri..

  • How to know the which week in GregorianCalendar API

    Dear all
    does someone know that way when i use GregorianCalendar this API to know the which week is
    for example in this month has 6 week and 2008/08/27 is week 5 , dose any idea i can know it in this program
    import java.util.Calendar;
    import java.util.GregorianCalendar;
    import java.util.Date;
    import java.text.DateFormat;
    public class DateExample5 {
         public static void main(String[] args) {
              DateFormat dateFormat =
              DateFormat.getDateInstance(DateFormat.FULL);
              // Create our Gregorian Calendar.
              //GregorianCalendar cal = new GregorianCalendar(2008,05,10);
              GregorianCalendar cal = new GregorianCalendar();
              //cal.setTime(new Date());
              System.out.println("System Date: " +dateFormat.format(cal.getTime()));
              // Set the day of week to FRIDAY
              cal.set(GregorianCalendar.DAY_OF_WEEK,GregorianCalendar.SUNDAY);
              System.out.println("After Setting Day of Week to Friday: " + dateFormat.format(cal.getTime()));
              cal.set(GregorianCalendar.DAY_OF_WEEK,GregorianCalendar.MONDAY);
              System.out.println("After Setting Day of Week to Friday: " +dateFormat.format(cal.getTime()));
              cal.set(GregorianCalendar.DAY_OF_WEEK,GregorianCalendar.TUESDAY);
              System.out.println("After Setting Day of Week to Friday: " +dateFormat.format(cal.getTime()));
              cal.set(GregorianCalendar.DAY_OF_WEEK,GregorianCalendar.WEDNESDAY);
              System.out.println("After Setting Day of Week to Friday: " +dateFormat.format(cal.getTime()));
              cal.set(GregorianCalendar.DAY_OF_WEEK,GregorianCalendar.THURSDAY);
              System.out.println("After Setting Day of Week to Friday: " +dateFormat.format(cal.getTime()));
              cal.set(GregorianCalendar.DAY_OF_WEEK,GregorianCalendar.FRIDAY);
              System.out.println("After Setting Day of Week to Friday: " +dateFormat.format(cal.getTime()));
              cal.set(GregorianCalendar.DAY_OF_WEEK,GregorianCalendar.SATURDAY);
              System.out.println("After Setting Day of Week to Friday: " +dateFormat.format(cal.getTime()));
              cal.add(GregorianCalendar.DAY_OF_MONTH,7);
    }Edited by: roger5089 on Aug 26, 2008 9:25 AM

    import java.util.Calendar;
    import static java.util.Calendar.WEEK_OF_MONTH;
    public class DateExample5 {
        public static void main(String[] args) {
            Calendar cal = Calendar.getInstance();
            int weekOfMonth = cal.get(WEEK_OF_MONTH);
            System.out.println(weekOfMonth); //5
    }Never used Calendar.WEEK_OF_MONTH, but I had a butcher's hook and found this documentation:
    <quote>
    Field number for get and set indicating the week number within the current month. The first week of the month, as defined by getFirstDayOfWeek() and getMinimalDaysInFirstWeek(), has value 1. Subclasses define the value of WEEK_OF_MONTH for days before the first week of the month.
    </quote>

  • How to know in which roles a given query is ?

    Hello,
    Suppose I have a certain query.
    Is there a way to know in which roles this query is other than do a manual search in pfcg?

    Hi Roy,
    You need to recheck the settings ,  i tried assigning web template to role , and while i try to transport it thorugh transport connection using following options
    Grouping indataflow afterwards
    collection mode : collect automatically
    display as list.
    And this shows me query involved and roles to which it is attached to.
    Hope that helps.
    Regards
    Kapadia
    ***Assigning points is the way to say thanks in SDN.***

  • I need to know in which table the long text is stored

    Using the transaction code 'AC03' , I go to the ' Create Service Master Page '.  Navigating through the page , I could see a ' long text ' button . Once it is being clicked , the white space for text entry comes .
    My query is this -> <b>I need to know in which table the long text is stored and the name of the field ??</b>
    If one goes to the table 'ASMDT' , one can find a field  'KZLTX' , which is a long text indicator, but not a long text storage field ......  plz help

    Hi
    Use the function module READ_TEXT for fetching the long text..
    I came across similar situation in my project where i need to fetch the long text for Notification no.I have used the following code for fetching the Notificatin long text,you can just compare this logic and change accordingly.
          CALL FUNCTION 'READ_TEXT'
               EXPORTING
                    CLIENT   = SY-MANDT
                    ID       = 'LTXT'
                    LANGUAGE = WA_STRUCT12-KZMLA
                    NAME     = QMNUM
                    OBJECT   = 'QMEL'
               TABLES
                    LINES    = INT_TAB13.
    Specify LANGUAGE if you wanna fetch the long text regardless of the log on lang.The resulting long text will be stored in the itab INT_TAB13 which can be defined with reference to the structure TLINE.
    Hope this helps.
    Regards,
    Hakim

  • How to know to which page the user is going

    Hi! I want to know to which domain my user is going after leaving a certain page. I want to know this to differentiate if is moving to a page inside my site, if he's leaving or if he's closing the browser.
    Hope u can help me! Regards
    Raul

    If a user clicks a link on the page then you can tell that where is he/she heading,but if they type the address in the location bar,then you are out of luck.
    And this is a JavaScript/html related question( I think...*_*)
    Cheers
    Khalid

  • How to know to which process chain a infopackage belongs to?

    Hi experts!
    I got the name of a infopacakage (also its technical name), but I would like to know to which process chain it belongs to,
    Does someone a quick way to know it?
    Thank you very much in advance!!

    Hi Raul,
    If you open the infopackage there is an option at the top 'process chain maint.'  Click this and it will give you the proces chain it belongs to.
    Thanks,
    Nick.

Maybe you are looking for

  • Reporting Services Registry access error

    We have an existing setup of SQL 2014 & SP 2013 Foundation server which works fine without any issues. Then, we have been installed the following components into SQL Server Reporting Services – SharePoint Reporting Services Add-in for SharePoint Then

  • My VO substitution works!  but did I do it right?

    Hi all, I wanted to update the query used in an LOV. I read the docs, then read many posts here as well as a couple of the blogs i found (thx much to those who wrote them!). My extension is working fine, but I want to make sure I've done it correctly

  • Adding Metadata deletes keywords in Bridge 2.1.1.9

    I had keyworded a large number of images. I then noticed that I had not applied my usual Metadata info (IPTC Core) (copyright, name, address, etc). I went to the Metadata panel, selected and clicked to Append my 2008 Metadata to the large number of s

  • Unexpected item in purchase list

    Hi guys, today I experienced one situation and I want to share it with you to see if there is a problem with it. After succeed to purchase some skype credit and receive the confirmation email, suddenly I received another email which let me know that

  • [XI] Missing related integration server in SLD

    Hi Experts. I'm very new in SAP Netweaver and it's components. Now I study <b>XI</b> and I would like to config some simple scenarios (FILE-XI-FILE etc). My colleague have installed XI on our machine and everything set up as well. I started with <b>S