BAPI_SALESORDER_SIMULATE How to get the conditions on header level?

Hi,
is it possible to get the pricing conditions on header level (sales order) with the Bapi BAPI_SALESORDER_SIMULATE?
We only found the information on item level?
Thanks a lot.

hope its possible,
If don't specify any item no for condition type in bapi, then it will be consider as header condition.
make sure condition should be header condition.
hope it will work.
Regards,
Marreddy

Similar Messages

  • How to get the dynamic Crosstab header name ?

    Hi ,
    The crosstab resaults shows as below ,How to get the dynamic Crosstab header name ?
    | Countryname |
    | Province1 | Province2 |
    | here to get CountryName | here to get CountryName |
    how to get the Countryname in data ceil?
    thanks

    Could you please elaborate on your requirement?
    You want header to be dynamic?

  • How to get the Change Document Header details for a given date

    Hi All,
    Can anyone help me on this Change Document Header details(CDHDR).
    Better way to pull the information of Change Document Header details(CDHDR). No Index is maintained for the tables.
    So please suggest better Optimising techniques to get the Change Document Header details(CDHDR).
    Using this Function module : CHANGEDOCUMENT_READ_HEADERS how to import the DATE_OF_CHANGE.
    Thanks in advance
    Regards
    Chakri

    HI,
    Go through the documenattion of the FM u can get the details.. and also where used list
    Regards,
    Nagaraj

  • How to get the Organizational Unit One level up

    Hi
    Does any one know any function module to get the org unit one level up by giving the current Organizational unit as input. Please reply very urgent.

    Hello Nirmal
    I am usually using the following function module to read to OM:
    *   SAP_SORG
    * OrgStructure with assigned orgunits)
        REFRESH: lt_struc.
        CALL FUNCTION 'RHPH_STRUCTURE_READ'
          EXPORTING
            plvar             = '01'            " active Planvar.
            otype             = 'O'             " OrgUnit
            objid             = l_wa_cb1-objid  " Toplevel-Node
            wegid             = 'SAP_SORG'
            begda             = iw_begda
            endda             = iw_endda
            pup_info          = 'X'
            with_stext        = 'X'
            tdepth            = 0               " alle Sub-Levels
          TABLES
            stru_tab          = lt_struc
          EXCEPTIONS
            catalogue_problem = 1
            root_not_found    = 2
            wegid_not_found   = 3.
    The parameter <b>WEGID</b> is the crucial on which determines the objects that are read from the OM. In your case you will need <b>WEGID = 'A002'</b> (reports (line) to).
    To understand the <i>evaluation path</i> (WEGID) better have a look at transaction <b>PPST</b>.
    Regards
      Uwe

  • How to get the dynamic Crosstab header Title

    Hi,
    my sql show as below
    select country,province, month, income from salestable
    As above content ,I build a crosstab ,use the month as left column,use "country" as level 1 header column ,use province as level2 header column,use income as summary value
    now ,in the income ceil, I want to get the current dynamic country title value
    How can i do to get it ?
    thanks a lot !!

    Use the
    <?./H?> in the new form-field inside the for-each <?for-each@cell:.//R1C1?>.
    You should be able to see the corresponding header value displayed

  • How to get the user entered  header text on a delivery

    Hi All,
    I am looking for a internal table which holds the user entered text in header text of the delivery. I was able to find header data in XTHEAD table. But actual lines(entered text)  in which structure it holds. I checked TLINETAB but its empty.
    My requirement is to check the user enterd text to validate at userexi_save .
    Any help will be appreciated
    Thanks
    Sai.

    Hi all,
    Thanks for ur replies.
    I already tried READ_TEXT. but its not giving the current value.
    check the following code:
            CLEAR lv_valid.
            READ TABLE catalog
                  INTO ls_catalog
                  WITH KEY tdobject = c_vbbk1
                             tdname = likp-vbeln
                               tdid = c_z043.
            IF sy-subrc = 0.
              CHECK ls_catalog-function NE 'D'.
              CALL FUNCTION 'READ_TEXT'
                EXPORTING
                  id                      = ls_catalog-tdid
                  language                = ls_catalog-tdspras
                  name                    = ls_catalog-tdname
                  object                  = ls_catalog-tdobject
                TABLES
                  lines                   = lt_tline
                EXCEPTIONS
                  id                      = 1
                  language                = 2
                  name                    = 3
                  not_found               = 4
                  object                  = 5
                  reference_check         = 6
                  wrong_access_to_archive = 7
                  OTHERS                  = 8.
              IF sy-subrc = 0.
                CLEAR lv_valid.
                READ TABLE lt_tline INTO ls_tline INDEX 1.
                CALL METHOD z2cl_utilities=>is_valid_text
                  EXPORTING
                    p_text  = ls_tline-tdline
                  IMPORTING
                    p_text1 = lv_text1
                    p_text2 = lv_text2
                    p_valid = lv_valid.
                IF lv_valid IS  INITIAL.
                  MESSAGE e504(z2vl) WITH lv_text1 lv_text2.
                ENDIF.

  • PS: How to get the hierarchy of a level 1 WBS only?

    Hi,
    This corresponds to Projects System module.
    If we have 5 level 1 WBS elements.Out of them if I want to get only the WBS hierarchy corresponding to a level 1 WBS element (say 2nd level 1 WBS element).
    I know that we can get all the WBS elements' hierarchy from BAPI_PROJECT_GETINFO. But I want the hierarchy for only one level 1 WBS element not for all. How?

    you could read them from SETNODE table with SETCLASS = '0110'

  • Bom explosion how to get the least level  every stufe = 1

    material number : 2t67363633
         following is the bom of that materials
       the below ouput is i got it from cs12
    .1 010 6631030681
    ..2 010 INL025000650
    ..2 020 IN6631030681
    .1 020 6650002622
    ..2 010 950002621GV
    .1 030 6682500491
    .1 040 712758079
    but in cs13 the following output i got only the following for the same materials
    .1 010 6631030681
    ..2 010 INL025000650 -
    i got this
    ..2 020 IN6631030681 -
    i got this
    .1 020 6650002622
    ..2 010 950002621GV  -
    i got this
    .1 030 6682500491    -
    i got this
    .1 040 712758079     -
    i got this
    requirement is take the least items in every level1 items
    supouse if the level1 item doesnt have any subitems ,we ll take this one  also
    following is the detiails for the senario,using this to restrict and how to get the cs13 above output
    level  fld2    fld3    fld4 fld5   fld6 fld7 componentname
    .1  0000001  00000097 001  00002  0001 010 6631030681  -
    ..2 0000001  00000093 002  00002  0001 010 inl025000650
    ..2 0000002  00000093 002  00004  0002 020 in6631030681-1560
    .1  0000002  00000097 001  00004  0002 020 6650002622
    ..2 0000001  00000095 002  00002  0001 010 950002621gv
    .1  0000003  00000097 001  00006  0003 030 6682500491
    <b> .1  0000004  00000097 001  00008  0004 040 712758079</b>
    i here attached my code for ur review
    i got the output without the last leve i bold it. is there any logic to solve the problem
    TABLES : MAST.
    DATA: BEGIN OF ISTPO OCCURS 1000.
            INCLUDE STRUCTURE STPOX.
          DATA: END OF ISTPO.
    DATA: W_TOPMAT LIKE CSTMAT.
    SELECT-OPTIONS : P_MATNR FOR MAST-MATNR.
    PARAMETERS     : P_WERKS TYPE MAST-WERKS.
    DATA : BEGIN OF ITAB OCCURS 0,
               MATNR LIKE MAST-MATNR,
               WERKS LIKE MAST-WERKS,
               END OF ITAB.
    DATA: IT_STB LIKE ISTPO OCCURS 0 WITH HEADER LINE.
    data : istpofinal like istpo occurs 0 with header line.
    data : istpotemp like istpo occurs 0 with header line.
    START-OF-SELECTION.
    CLEAR ISTPO. REFRESH ISTPO.
    SELECT MATNR WERKS FROM MAST INTO TABLE ITAB
                       WHERE MATNR  IN P_MATNR AND WERKS = P_WERKS.
    LOOP AT ITAB.
    CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
        EXPORTING
          CAPID                 = 'PP01'
          MEHRS                 = 'X'
         MMAPS                 = ' '
         MDMPS                 =  ' '
         BREMS                  = 'X'
          DATUV                 = SY-DATUM
          MTNRV                 = ITAB-MATNR
          WERKS                 = P_WERKS
          EMENG                 = '1'
          STKKZ                 = ' '
          FBSTP                 = ' '
          FTREL                 = ' '
        IMPORTING
          TOPMAT                = W_TOPMAT
        TABLES
          STB                   = ISTPO
        EXCEPTIONS
          ALT_NOT_FOUND         = 1
          CALL_INVALID          = 2
          MATERIAL_NOT_FOUND    = 3
          MISSING_AUTHORIZATION = 4
          NO_BOM_FOUND          = 5
          NO_PLANT_DATA         = 6
          NO_SUITABLE_BOM_FOUND = 7
          OTHERS                = 8.
      IF SY-SUBRC = 0.
    WRITE:/ 'MaterialNumber' ,21 'Description'.
    SKIP 1.
    endif.
    WRITE: / W_TOPMAT-MATNR UNDER TEXT-H00 COLOR COL_HEADING,
             W_TOPMAT-MAKTX UNDER TEXT-H01 COLOR COL_HEADING.
    data : ttabix like sy-tabix,
            tstufe like stpox-stufe.
      data : len type i.
    istpotemp[] = istpo[].
      describe table istpotemp lines len.
    LOOP AT ISTPO .
    WRITE :/ ISTPO-STPOZ,
               ISTPO-STLKN,
               ISTPO-POSNR,
               ISTPO-IDNRK,
               ISTPO-OJTXP,
               ISTPO-MENGE,
               ISTPO-MEINS.
    if sy-tabix = len.
    move-corresponding istpo to istpofinal.
    append istpofinal.
    exit.
    endif.
    ttabix = sy-tabix - 1 .
    if tstufe ge istpo-stufe.
    read table istpotemp index ttabix.
    move-corresponding istpotemp to istpofinal.
    append istpofinal.
    endif.
    tstufe = istpo-stufe.
    ENDLOOP.
    *endif.
    endloop.
    skip 3.
    loop at istpofinal.
         WRITE :/ ISTPOFINAL-STPOZ,
                ISTPOFINAL-STLKN,
                ISTPOFINAL-POSNR,
                ISTPOFINAL-IDNRK,
                ISTPOFINAL-OJTXP,
                ISTPOFINAL-MENGE,
                ISTPOFINAL-MEINS.
    endloop.

    Hi Shiba,
    We got the required list,
    But while using select-option to view multiple values the list of datas in the ISTPOFINAL gets displayed like the given below.
    example
    Material1
    .........Component 1
    .........Component 2
    Material 2
    .........Component 1......... From Material 1
    .........Component 2......... From Material 1
    .........Component 3
    .........Component 4
    Material 3
    .........Component 1......... From Material 1
    .........Component 2......... From Material 1
    .........Component 3......... From Material 2
    .........Component 4......... From Material 2
    .........Component 5
    .........Component 6
    Like this it goes on for the entire list at the tie of displaying the ISTPOFINAL.
    We tried evn by deleting the adjacent duplicate values still it gets displayed.
    is there any problm with the loop or is it the problm with the ending of the loop.
    Pls suggest us.
    LOOP AT ITAB.
    CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
        EXPORTING
          CAPID                 = 'PP01'
          MEHRS                 = 'X'
          MMAPS                 = ' '
          MDMPS                 =  ' '
         BREMS                  = 'X'
          DATUV                 = SY-DATUM
          MTNRV                 = ITAB-MATNR
          WERKS                 = P_WERKS
          EMENG                 = '1'
          STKKZ                 = ' '
          FBSTP                 = ' '
          FTREL                 = ' '
        IMPORTING
          TOPMAT                = W_TOPMAT
        TABLES
          STB                   = ISTPO
          MATCAT                = MATCAT
        EXCEPTIONS
          ALT_NOT_FOUND         = 1
          CALL_INVALID          = 2
          MATERIAL_NOT_FOUND    = 3
          MISSING_AUTHORIZATION = 4
          NO_BOM_FOUND          = 5
          NO_PLANT_DATA         = 6
          NO_SUITABLE_BOM_FOUND = 7
          OTHERS                = 8.
    WRITE: / W_TOPMAT-MATNR UNDER TEXT-H00 COLOR COL_HEADING,
             W_TOPMAT-MAKTX UNDER TEXT-H01 COLOR COL_HEADING.
    data : ttabix like sy-tabix,
            tstufe like stpox-stufe.
      data : len type i.
    istpotemp[] = istpo[].
      describe table istpotemp lines len.
    loop at istpo.
    CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
        EXPORTING
          CAPID                 = 'PP01'
          MEHRS                 = 'X'
          MMAPS                 = ' '
          MDMPS                 =  ' '
         BREMS                  = 'X'
          DATUV                 = SY-DATUM
          MTNRV                 = ISTPO-IDNRK
          WERKS                 = P_WERKS
          EMENG                 = '1'
          STKKZ                 = ' '
          FBSTP                 = ' '
          FTREL                 = ' '
        IMPORTING
          TOPMAT                = W_TOPMAT
        TABLES
          STB                   = ISTPOTEMP
         MATCAT                = MATCAT
        EXCEPTIONS
          ALT_NOT_FOUND         = 1
          CALL_INVALID          = 2
          MATERIAL_NOT_FOUND    = 3
          MISSING_AUTHORIZATION = 4
          NO_BOM_FOUND          = 5
          NO_PLANT_DATA         = 6
          NO_SUITABLE_BOM_FOUND = 7
          OTHERS                = 8.
    if sy-subrc ne 0.
    move-corresponding istpo to istpofinal.
    append istpofinal.
    clear: istpo, istpofinal.
    else.
    continue.
    clear: istpo, istpofinal.
    endif.
    *break-point.
    delete adjacent duplicates from istpofinal.
    endloop.
    loop at istpofinal.
         WRITE :/ ISTPOFINAL-STPOZ,
                ISTPOFINAL-STLKN,
                ISTPOFINAL-POSNR,
                ISTPOFINAL-IDNRK,
                ISTPOFINAL-OJTXP,
                ISTPOFINAL-MENGE,
                ISTPOFINAL-MEINS.
    clear: istpofinal.
    endloop.
    endloop.

  • Deactivation of Pricing Conditions at header level of Sales Order

    Hello there,
    We have used a routine in pricing procedure (BaseType Routine) to deactivate condition MWST in the MWST condition line in pricing procedure, transaction V/08.
    In the routine, We played with the KINAK (set to K )and KOBLI (set to space) flags of structure KOMT1 and XKOMV and delete the MWST entry in the TOBLI table and succeeded to deactivate the MWST at item level of the sales order. (MWST condition appear in the conditions tab at item level as inactive)
    We have created a sales order with only one item that has the MWST condition deactivated at item level.
    But in the conditions at header level the MWST condition does not appear. Shouldn't the MWST condition appear at header level but deactivated (with a yellow triangle next to MWST)?
    If yes is there a flag that we forgot to set?

    Hi,
    what is the table name you had mentioned
    TOBLI is it correct?
    Thanks
    mano

  • How to get the Text name to pass in the  parameter header in save_text

    Hi,
      I am trying to change the long text of operation for historical order by using the flat file.I am using the save_text to do this.I would like to know how  to get the text name in order to pass the parameter header in save_text.
      I went to the tcode iw62 to get the header information of the long text.300100000009200000001
    i would like to know what this 1000000092 indicates and where is this value updated in the table so that i can link it thru the order no  to get the link and pass it in the text_name.
      can anyone help me out?
    krishnan

    Hi,
    Your query is.
    I went to the tcode iw62 to get the header information of the long text.300100000009200000001
    i would like to know what this 1000000092 indicates
    In above number
    300 - Client
    1000000092 - AUFPL - Routing number of operations in the order (You can fetch this from table HIVG)
    00000001 - APLZL - General counter for order ( You can fetch this from table HIVG).
    BR,
    Vijay

  • How can I have the pricing conditions at the item and header level of the d

    How can I have the pricing conditions at the item and header level of the delivery? There exist "condition" tabs both the header and the item level of the delivery but the contents of the tabs are empty. I'll be happy if you can help me. Thanks in advance....

    Hi
    If you want to have the pricing procedure at delivery level then you need to assign a pricing procedure at delivery level also
    Just go through the path to maintain the pricing procedure at delivery level.
    IMG -> Logistics execution -> Shipping -> Basic Shipping Functions -> Pricing -> Pricing Procedure. for Delivery.
    But can you be more clear if the above one is not your query ?
    Regards
    Srinath

  • How to get the Database table behind condition records

    Hello All
    In transaction VK13, after giving condition type, I can select sales document.
    For a given Sales Document number, there are several conditions.
    How can i extract all the conditions for a given sales document?
    I am coding a report for this. In which database table can i get the condition between sales document number & different conditions attached to it?
    On the screen, i can see that the fields are from the structure KOMG. What is the corresponding table?
    Thanks
    Chandra Sekhar

    Hi,
    corersponding tables will be konp , a771,a511,a564
    here i am providing you sample query related to it
    { -Get the Territory list price YPR0
        SELECT vkorgau
               zzland1_ag
               zzmatgrade
               a511~kfrst
               datbi
               datab
               kbetr
          INTO TABLE it_list1
          FROM a511
          JOIN konp
            ON a511knumh = konpknumh
         WHERE a511~kappl = 'V'
           AND a511~kschl = 'YPR0'
           AND vkorgau = '5000'
           AND zzland1_ag = v_land1
           AND loevm_ko <> 'X'.}
    Thanks & Regards,
    Sateesh.
    Edited by: sateesh kumar on Nov 12, 2009 12:59 PM

  • How to get the header to downloading fine

    Hi,
    i am downloading xl file for which i need to get the header.i doesnt no the fieldnames.how to get the header for entire file.

    Hi,
    For this please create an internal table for field names and pass it to FM' WS_DOWNLOAD'.
    Sample code:
    * internal table for headers
    DATA : BEGIN OF it_fieldnames OCCURS 0,
           name(100),
           END OF it_fieldnames.
    g_fname = 'C:\Documents and Settings\kut3kor\Desktop\kar4.xls'.
    *populate the internal table
    it_fieldnames-name = 'Material Number'.
    APPEND it_fieldnames.
    it_fieldnames-name = 'Material type'.
    APPEND it_fieldnames.
    it_fieldnames-name = 'Material group'.
    APPEND it_fieldnames.
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
    *   BIN_FILESIZE                  = ' '
    *   CODEPAGE                      = ' '
       FILENAME                      = g_fname
       FILETYPE                      = 'DAT'
    *   MODE                          = ' '
    *   WK1_N_FORMAT                  = ' '
    *   WK1_N_SIZE                    = ' '
    *   WK1_T_FORMAT                  = ' '
    *   WK1_T_SIZE                    = ' '
    *   COL_SELECT                    = ' '
    *   COL_SELECTMASK                = ' '
    *   NO_AUTH_CHECK                 = ' '
    * IMPORTING
    *   FILELENGTH                    =
      TABLES
        data_tab                      = gt_mara[]
       FIELDNAMES                    = it_fieldnames[]
    * EXCEPTIONS
    *   FILE_OPEN_ERROR               = 1
    *   FILE_WRITE_ERROR              = 2
    *   INVALID_FILESIZE              = 3
    *   INVALID_TYPE                  = 4
    *   NO_BATCH                      = 5
    *   UNKNOWN_ERROR                 = 6
    *   INVALID_TABLE_WIDTH           = 7
    *   GUI_REFUSE_FILETRANSFER       = 8
    *   CUSTOMER_ERROR                = 9
    *   OTHERS                        = 10
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Karuna.

  • How get the condition type of PO's item

    Dear All,
    I want to get the condition type of PO's item.
    I have checked the EKPO, there is Purchasing Info Record but no Purchasing info record category(esokz) that is the key of in table A017.
    How can i get the Purchasing info record category(esokz) of PO's item?
    Thank you in advance.

    Hi,
    Purchase info records are stored in EINA and EINE table. The field you are looking for is in table EINE.
    Hope this helps.
    ashish

  • How to get the tax break up??

    hello experts
    I want to know how to get the Tax break ups In Sales Order Or purchase order under the conditions tab as it is not stored in Database.
    And The Text Fields In Miro screen where it is stored In Db and  how can i retrieve it ???
    How to retrieve Data using  fuction Module. from Database??
    if possible Plz attach a Code.
    [email protected]
    Plz reply as it is urgent
    Thanx and Regards

    Hi
    All tax related amounts are stored in KONV and KONp tables based on condition Types(KSCHL) field
    so for sales order take the VBAK-KNUMV and pass to KONV table and take the different tax amount sbased on the KSCHL field
    similarly for PO
    Take the EKKO (po Header) KNUMV field and pass it to KONV-KNUMV and get the condition type based amounts (KBETR and KWERT) from table KONV
    Or search for the Condition tables in which the tax related COnditions are maintained for that Tax COde (like A003 or some other A* table) and take the KNUMH field from it and pass it to the table KONP and take the condition type based all tax  amounts from KONP tables.
    Regards
    Anji

Maybe you are looking for

  • Pass value of column when report has only one row

    Hello everyone, Sorry for not being very accurate with the title of the thread.Here's my situation: I have an item that, when modified(key pressed) refreshes an interactive report. All the report column have link to a javascript function, so when the

  • Exception during authentication

    Hi, I have an web application deployed in a server. When i give the credentials in the login page, instead of showing the application home page, i am getting the following exception RPC_BIND_FAILED Unexpected return code 800:Action Timed out Is this

  • How to verify that an event is triggered

    Hi Experts, I am running a BW job that is based on an event (or basically a group of events using event collector). Some times, I need to debug it to find out why the job is not triggered and it is very difficult to find out which event was not there

  • How do I check from AS if Mouse is shown or hidden?

    How do I check from AS if Mouse is shown or hidden?

  • Adobe Application Manager removed my creative suite

    I accidentally updated Adobe Application Manager and all my creative suite is gone from my computer.    What to do?