Sapscript problem or condition

example my code
/:   IF &REGUH-LAUFI+5(1)& = 'R'                                       
modifiche BGP 08.06.06                                     
/:   IF &REGUH-ZBUKR& = 'CAI0'                                             
/:   OR &REGUH-ZBUKR& = 'CAI1'                                         
/:   OR &REGUH-ZBUKR& = 'CAI2'                                          
A1   ,,CMF - ROM                                                       
/:   ELSE                                                              
A1   ,,Tesoreria                                                       
/:   ENDIF                                                             
me unknown command

Hi,
You have to use the IF statement in the same line.
/: IF &REGUH-ZBUKR& = 'CAI0' OR &REGUH-ZBUKR& = 'CAI1' OR &REGUH-ZBUKR& = 'CAI2' OR &REGUH-ZBUKR& = 'AIR1' OR &REGUH-ZBUKR& = 'AIR2'
When you reach the end of the line press Shift+F8 to extend the line in script editor and comeplete the if statement in the same line.
Regards,
Vik

Similar Messages

  • Problem with Conditions in a Query

    Hello All,
                 I have the following Condition in My Query.
    Applied Amount Equals to 0.   When I run the Query I receive a message 'No Records Exists with the given conditions'.   But when I remove the condition and place 'Applied Amount' in the Columns Section I see there are numerous records that Have 'Applied Amount' as 0.   What might be the problem?
    Thanks

    Hi,
    Check out the zero suppression in your BEx analyser and also make sure that when you have defined conditions then you have to select only Applied Amount Charecteristic rather than all the charecteristics.
    Hope tis helps...
    Assign points if it helps..
    Thanks,
    Gattu.

  • PO BAPI Problem in condition types

    Hi,
    I am facing a strange problem in creation of PO through "BAPI_PO_CREATE1".
    In the Item condition internal table, I am passing the condition types.
    The PO is getting created successfully.
    Eg. I pass conditions and their values as follows:
    PB00 : 1000
    ZB00 : 1000
    FRB1 : 1000
    The PO is created successfully and we can check the prices updated properly.
    Now,
    When I create a second PO with the same values, the prices are taken from the last PO and the prices from
    my code(which are passed through BAPI) are added to the last value.
    If I run the program with the same values as above, the PO is created with the values 2000.
    Third time it is 3000 and so.
    The value from the last PO is coming into the new PO.
    Please advise me if anything missing.
    My code is below::
    ================
    *& Report  ZTEST_PO
    REPORT  ZTEST_PO.
    data : HEADER like BAPIMEPOHEADER .
    data : HEADERX like BAPIMEPOHEADERX .
    data : POITEM like BAPIMEPOITEM occurs 0 with header line.
    data : POITEMX like BAPIMEPOITEMX occurs 0 with header line.
    data : POSCHEDULE like BAPIMEPOSCHEDULE occurs 0 with header line.
    data : POSCHEDULEX like BAPIMEPOSCHEDULX occurs 0 with header line.
    DATA : RET LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    DATA : ret1 like bapiret2.
    Data PO like BAPIMEPOHEADER-PO_NUMBER.
    data : pocond like BAPIMEPOCOND occurs 0 with header line.
    data : pocondx like BAPIMEPOCONDX occurs 0 with header line.
    *pocond-CONDITION_NO = '00000'.
    pocond-itm_number = '000010'.
    pocond-COND_ST_NO = '001'                                   .
    *pocond-COND_COUNT = '1'.
    pocond-COND_TYPE = 'PB00'.
    pocond-COND_value = '500'.
    pocond-CURRENCY = 'EUR'.
    pocond-CURRENCY_ISO = 'EUR'.
    pocond-CHANGE_ID =  'I'.
    APPEND POCOND.
    **pocond-CONDITION_NO = '00000'.
    *pocond-itm_number = '000010'.
    *pocond-COND_ST_NO = '10'                                   .
    *pocond-COND_COUNT = '2'.
    *pocond-COND_TYPE = 'PBXX'.
    *pocond-COND_value = '555'.
    *pocond-CURRENCY = 'EUR'.
    *pocond-CURRENCY_ISO = 'EUR'.
    *pocond-CHANGE_ID =  'U'.
    *APPEND POCOND.
    **pocond-CONDITION_NO = '00000'.
    *pocond-itm_number = '000010'.
    *pocond-COND_ST_NO = '20'                                   .
    *pocond-COND_COUNT = 0.
    *pocond-COND_TYPE = 'ZB00'.
    *pocond-COND_value = '666'.
    *pocond-CURRENCY = 'EUR'.
    *pocond-CHANGE_ID = 'U'.
    *APPEND POCOND.
    **pocond-CONDITION_NO = '00000'.
    *pocond-itm_number = '000010'.
    *pocond-COND_ST_NO = '30'                                   .
    *pocond-COND_COUNT = 0.
    *pocond-COND_TYPE = 'FRB1'.
    *pocond-COND_value = '777'.
    *pocond-CURRENCY = 'EUR'.
    *pocond-CHANGE_ID = 'U'.
    *APPEND POCOND.
    *pocondx-CONDITION_NO = '00000'.
    POCONDX-ITM_NUMBER  = '000010'.
    POCONDX-COND_ST_NO = '000'.
    *POCONDX-CONDITION_NOX = 'X'.
    *POCONDX-COND_ST_NOX = 'X'.
    POCONDX-ITM_NUMBERX = 'X'.
    *POCONDX-COND_COUNT = 'X'.
    POCONDX-COND_TYPE = 'X'.
    POCONDX-COND_value = 'X'.
    pocondX-CURRENCY = 'X'.
    *pocondX-CURRENCY_ISO = 'X'.
    pocondX-CHANGE_ID = 'X'.
    APPEND POCONDX.
    HEADER-COMP_CODE = 'TF01'.
    HEADER-DOC_TYPE = 'DMPO'.
    HEADER-VENDOR = '0000000317'.
    HEADER-LANGU = 'EN'.
    HEADER-PURCH_ORG = '1001'.
    HEADER-PUR_GROUP = '110'.
    HEADER-CURRENCY = 'EUR'.
    HEADER-DOC_DATE = '22.10.2007'.
    HEADER-REF_1 = '999999999999'.
    HEADERX-VENDOR = 'X'.
    HEADERX-PURCH_ORG = 'X'.
    HEADERX-PUR_GROUP = 'X'.
    HEADERX-REF_1 = 'X'.
    POITEM-PO_ITEM = '00010'.
    POITEM-MATERIAL = '00042199730L'.
    POITEM-PLANT = '1000'.
    POITEM-STGE_LOC = '1030'.
    POITEM-MATL_GROUP = '01'.
    POITEM-QUANTITY = '10'.
    POITEM-PRICE_UNIT = 500.
    poitem-calctype = 'C'.
    append POITEM.
    POITEMX-PO_ITEM = '00010'.
    POITEMX-MATERIAL = 'X'.
    POITEMX-PLANT = 'X'.
    POITEMX-QUANTITY = 'X'.
    POITEMX-PRICE_UNIT = 'X'.
    append POITEMX.
    POSCHEDULE-PO_ITEM = '00010'.
    POSCHEDULE-DELIVERY_DATE = '30.10.2007'.
    append POSCHEDULE.
    POSCHEDULEX-PO_ITEM = '00010'.
    POSCHEDULEX-PO_ITEMX = 'X'.
    POSCHEDULEX-DELIVERY_DATE = 'X'.
    append POSCHEDULEX.
    CALL FUNCTION 'BAPI_PO_CREATE1'
      EXPORTING
        poheader                     = HEADER
        POHEADERX                    = HEADERX
      POADDRVENDOR                 =
      TESTRUN                      =
      MEMORY_UNCOMPLETE            =
      MEMORY_COMPLETE              =
      POEXPIMPHEADER               =
      POEXPIMPHEADERX              =
      VERSIONS                     =
      NO_MESSAGING                 =
      NO_MESSAGE_REQ               =
      NO_AUTHORITY                 =
      NO_PRICE_FROM_PO             =
    IMPORTING
       EXPPURCHASEORDER             = PO
      EXPHEADER                    =
      EXPPOEXPIMPHEADER            =
    TABLES
       RETURN                       = RET
       POITEM                       = POITEM
       POITEMX                      = POITEMX
      POADDRDELIVERY               =
       POSCHEDULE                   = POSCHEDULE
       POSCHEDULEX                  = POSCHEDULEX
      POACCOUNT                    =
      POACCOUNTPROFITSEGMENT       =
      POACCOUNTX                   =
       POCONDHEADER                 = POCOND
       POCONDHEADERX                = POCONDX
        POCOND                       = POCOND
        POCONDX                      = POCONDX
      POLIMITS                     =
      POCONTRACTLIMITS             =
      POSERVICES                   =
      POSRVACCESSVALUES            =
      POSERVICESTEXT               =
      EXTENSIONIN                  =
      EXTENSIONOUT                 =
      POEXPIMPITEM                 =
      POEXPIMPITEMX                =
      POTEXTHEADER                 =
      POTEXTITEM                   =
      ALLVERSIONS                  =
      POPARTNER                    =
      POCOMPONENTS                 =
      POCOMPONENTSX                =
      POSHIPPING                   =
      POSHIPPINGX                  =
      POSHIPPINGEXP                =
      NFMETALLITMS                 =
    if RET-type NE 'E'.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            EXPORTING
              WAIT   = 'X'
            IMPORTING
              RETURN = ret1.
    write : ' PO Created : ', PO   .
        ELSE.
          CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'
            IMPORTING
              RETURN = ret1.
        ENDIF.
    ================

    Any input??

  • Box in main window (sapscript) problem.

    Hi, all.
    I meet a weird problem....
    I have 2 pages form which have 2 same MAIN window and of course their source code is same one. But when I run the output form, I found that one of the page which main window's box is disappear, while the other page no problem.
    How come like this? Should be the box appear in both MAIN window, right? Hope someone can guide me.
    Thanks in advance.

    Boxes in the main window only get printed in the first page, unless you include them in an element and explicitly call the, But of course that's not the way to go.
    Every other window in the same page which has content that's not inside one element gets printed every page. So to solve your problem, declare another window (perhaps called BOXES) with the appropiate dimmensions and define in it the boxes you need. Replicate this BOXES in the other pages (if you use different page formats inside the sapscript) or leave it in the First page (if it's the only one in the sapscript). The boxes will now print in every page.

  • Problem with condition IF THEN in Message MApping

    Hi,
    We are not getting correct ouput when we use condition IF THEN without else in message Mapping .We are sending data from File to XI to R/3.
    We are using file adapter and IDOC adapter to create customer in R/3.
    In message Mapping we are creating Segment E1KNB1M and E1KNBKM based on condition.
    IF THEN Condition used in mapping is as below
    find the length of Compnaycode with LENGTH function.Pass that value as one of the parameter to function GREATER.Pass second parameter to function GREATER a constant (0).Pass the result to If without else function.If this is true pass Item to IF THEN function and Map the result to E1KNB1M.
    Our mapping is not giving desired output in below scenario:
    Source  XML
    <?xml version="1.0" encoding="utf-8" ?>
    <ns:CustomerMaster_Request_MT xmlns:ns="http://mazdausa.com/sapr3/fi/masterdata/customermaster">
    <Idoc>
    <Header>
      <ID>H</ID>
      <ACCTGRP>M002</ACCTGRP>
      <CUSTNO>R51563</CUSTNO>
      <NAME1>WAYNE MAZDA</NAME1>
        </Header>
    <Item>
      <ID>L</ID>
      <COMPCODE>US10</COMPCODE>
      <BANKKEY>0000326</BANKKEY>
      <BANKCNTRY>US</BANKCNTRY>
      <BANKACCT>05893</BANKACCT>
      </Item>
      </Idoc>
    - <Idoc>
    - <Header>
      <ID>H</ID>
      <ACCTGRP>M002</ACCTGRP>
      <CUSTNO>51563</CUSTNO>
      <NAME1>WAYNE MAZDA</NAME1>
      </Header>
      </Idoc>
    - <Idoc>
    - <Header>
      <ID>H</ID>
      <ACCTGRP>M002</ACCTGRP>
      <CUSTNO>V51563</CUSTNO>
      <NAME1>WAYNE MAZDA</NAME1>
        </Header>
    - <Item>
      <ID>L</ID>
      <COMPCODE>US10</COMPCODE>
      <BANKKEY>000326</BANKKEY>
      <BANKCNTRY>US</BANKCNTRY>
      <BANKACCT>0305893</BANKACCT>
      </Item>
      </Idoc>
      </ns:CustomerMaster_Request_MT>
    Here 3 Idoc are created under ZDEBMAS06.
    First IDOC contain segment E1KNB1M and E1KNBKM as desired because first idoc in Source XML contains Item data.
    Second IDOC contain segment E1KNA1M only as desired because second Idoc in Source XML does not contains item data.
    Third IDOC does not contain Segment E1KNBKM and E1KNB1M which is not a desired output. It should contain these segments as third idoc in source XML have item data.
    But we are getting right output in case we also have Item data under second IDOC in source XML.
    Please let me know where I am doing wrong.
    Thanks.
    Rekha.

    Hi Rekha,
    I am getting the same problem while checking display Queue in message mapping??
    <i><b>Source code has syntax error: java.lang.NoClassDefFoundError: com/sun/tools/javac/Main Exception in thread "main"</b></i>
    Any ideas to solve this problem...
    Thanks,
    Sekhar

  • SAPSCRIPT problem in printing on Dot Matrix Printer

    Hi!
    I have a SAPSCRIPT Form with page format INCH12. The SAPSCRIPT output is displayed properly in print preview. But when it is sent for printing on the Dot matrix printer the first three lines of the second page are printed on the first page at the bottom. Paper size is also 12INCH. I tried adjusting all the windows and putting blank lines. I also gave /: NEW-PAGE command. But it did not solve the problem.
    I am not able to identify where exactly the problem is? Is it in the SAPSCRIPT or in printer settings.
    If anyone had faced similar problem and was able to solve it then please reply.

    Hi
    if it is possible try to print the same in another printer and confirm the problem
    no doubt certain printers may create such problems while printing the output
    so to confirm the problem try with other printer.
    Reward points for useful Answers
    Regards
    Anji

  • SAPSCRIPT problem - skipping lines in an element

    Hello,
    I am having a weird problem with a SAPSCRIPT form that it is not executing an ELEMENT(/E) completely. When I debug it, I clearly see executimg only the first line and then it skips the rest of the code. I have ensured that I do not have any ENDIF's missing or any syntax errors. I also changed in the ABAP program(print program) to use another ELEMENT and it is also skipping the second and subsequent lines. I am not sure if it a problem with the print program or the SAPScript form.
    Here is my ABAP code:
    Init the barcode window
                CALL FUNCTION 'WRITE_FORM'
                EXPORTING
                  window  = 'BARCODE'
                  element = 'INIT_BARCODE'
                EXCEPTIONS
                  window  = 1
                  element = 2.
    Here is my SAPScript code:
    /E INIT_BARCODE
    /:  DEFINE &G_XPOS1& = &ZBAR-G_XPOS1&
    /:  DEFINE &G_XPOS2& = &ZBAR-G_XPOS2&
    /:  DEFINE &G_XPOS3& = &ZBAR-G_XPOS3&
    /:  DEFINE &G_XPOS4& = &ZBAR-G_XPOS4&
    /*  Print startcode
    /:  POSITION XORIGIN '0.2' CM YORIGIN '28.4' CM
    /:  IF &Y2OF5-C01& = '1'
    /:  BOX XPOS &G_XPOS1& TW WIDTH 0 TW HEIGHT 6 MM FRAME 8  TW INTENSITY 100
    /:  ENDIF
    /:  IF &Y2OF5-C02& = '1'
    /:  BOX XPOS &G_XPOS2&  TW WIDTH 0 TW HEIGHT 6 MM FRAME 8  TW INTENSITY 10
    /:  ENDIF
    /:  IF &Y2OF5-C03& = '1'
    /:  BOX XPOS &G_XPOS3&  TW WIDTH 0 TW HEIGHT 6 MM FRAME 8  TW INTENSITY 10
    /:  ENDIF
    /:  IF &Y2OF5-C04& = '1'
    /:  BOX XPOS &G_XPOS4& TW WIDTH 0 TW HEIGHT 6 MM FRAME 8  TW INTENSITY 100
    /:  ENDIF
    Any ideas on this problem?
    Thanks,
    Nick F.

    Yes, you are correct. I fixed the definition that I had an error and it is as follow:
    TABLES: j_1ai02, y2of5, zbar.
    DATA:
          g_xpos1(4) TYPE n,
          g_xpos2(4) TYPE n,
          g_xpos3(4) TYPE n,
          g_xpos4(4) TYPE n,
          g_xpos5(4) TYPE n,
          g_xpos6(4) TYPE n,
          g_xpos7(4) TYPE n,
          g_xpos8(4) TYPE n,
          g_xpos9(4) TYPE n,
          g_xpos10(4) TYPE n,
          g_xpos11(4) TYPE n,
          g_xpos12(4) TYPE n,
          g_xpos13(4) TYPE n,
          g_xpos14(4) TYPE n,
          g_tw_esp(2) TYPE n.   "TYPE i VALUE 12.
    DATA: w_n        TYPE i,
          w_digitos  TYPE i,
          w_resto    TYPE i,
          w_pos      TYPE i,
          w_nro(2)   TYPE n,
          w_barcode(44) TYPE n.
    But, I am still getting the warning in the SE71 check and skipping the lines of the ELEMENT section...

  • Problem meeting condition in jsp

    Hi,
    I have written a small test jsp, which is basically just an input form that allows the user to select a value from a drop down box.
    When the form is submitted depending on what value was submitted, I want to display some stocks prices using a specific xml style sheet. The style sheet used is dependant on the choice submitted by the user in the drop down box.
    However my problem is that no matter what choice i make, the last condition is always met and the stocks are always displayed using the last xsl style sheet (stocks_short.xsl). None of the conditions in the two if statements are ever met.
    I guess this must be something to do with the way I am comparing the request parameters in the if statements? Can anyone please help and let me know what Im doing wrong please?
    Code is listed below:
    ------------------------------------------------------->
    <%@ page contentType="text/html" %>
    <%
    if (request.getParameter("cmbView")== null)
    %>
    <CENTER>
    <H2>User Info Request Form</H2>
    <FORM METHOD="GET" ACTION="stocks.jsp">
    <select name="cmbView">
    <option>pick a display type</option>
    <option value="summary">summary</option>
    <option value="full">full</option>
    </select>
    <INPUT TYPE="submit" value="submit form">
    </FORM>
    </CENTER>
    <%
    else
    %>
    <%! String xmlHeader; %>
    <%
    if (request.getParameter("cmbView") == "summary") <--- this condition is never met
    xmlHeader = "<?xml:stylesheet type='text/xsl' href='stocks.xsl' version='1.0' encoding='UTF-8'?>";
    else if (request.getParameter("cmbView") =="full") <--- this conditon is also never met
    xmlHeader = "<?xml:stylesheet type='text/xsl' href='stocks_long.xsl' version='1.0' encoding='UTF-8'?>";
    else <--- this conditon is always met
    xmlHeader = "<?xml:stylesheet type='text/xsl' href='stocks_short.xsl' version='1.0' encoding='UTF-8'?>";
    %>
    <%= xmlHeader %>
    <portfolio>
    <stock>
    <symbol>SUNW</symbol>
    <name>Sun Microsystems</name>
    <price>17.1</price>
    <industry>Software</industry>
    </stock>
    <stock>
    <symbol>AOL</symbol>
    <name>America Online</name>
    <price>51.05</price>
    <industry>Internet</industry>
    </stock>
    <stock>
    <symbol>IBM</symbol>
    <name>International Business Machines</name>
    <price>116.10</price>
    <industry>Software</industry>
    </stock>
    <stock>
    <symbol>MOT</symbol>
    <name>MOTOROLA</name>
    <price>15.20</price>
    <industry>Telecoms</industry>
    </stock>
    </portfolio>
    <%
    %>

    Hi,
    Do this way;
    if (request.getParameter("cmbView") .equals( "summary") )
    instead of
    if (request.getParameter("cmbView") == "summary")
    In the first case you are comparing the objects not the content of the String.Check the docs for the detail.
    regards vicky

  • Decimal space problem in Condition value of Import PO

    Dear All,
    In PO the condition value found to be 0.00.
    When the problem explored,we find only 2 decimal places appears for the value.
    If the value is 0.0021,it appears as 0.00 only due to decimal space given in KOMV(structure) against KWERT field is 2 decimal space only.
    Can we increase the decimal space?If we increase to 4,what will be the effect or NO effect?
    Please advice.
    Regards

    You can do this in OY04 - Set Decimal Places for Currency Code
    But this is not preferred when you execute this transaction the system gives teh following messages
    Information: Caution: The table is cross-client
    Warning: In a productive system, you 
    must not delete the            
    currencies in use or change the
    decimal places.                
    This could make amounts in     
    documents already posted       
    incorrect or invalid.          
    Warning:
       Before you continue, please read the foll
       text carefully.                         
       If you do not heed this note, you can cau
       irreparable damage to the system with thi
       transacton.                             
       In the R/3 System tables currency fields
       stored as decimal figures with a variable
       of decimal places. The decimal point is n
       stored in the field in the database. Inst
       each currency field refers to a currency
       field. In this transaction you assign the
       of decimal places to this currency key un
       Example: If you have set currency USD to
       two decimal places and you post an amount
    USD, an amount of 10000 USD is stored
    currency field in the database. Not un
    amount is processed further or is outp
    the system use the currency key from t
    reference field to determine the numbe
    decimal places via this table. In this
    table content can be interpreted corre
    further processing or formatted for ou
    the correct punctuation.             
    If after posting you changed the numbe
    decimal places for USD, for example, t
    existing field content of 10000 would
    interpreted for futher processing or o
    10 USD (10.000). This would mean that
    contents of tables across the system w
    all currency fields containing an amount
    be interpreted incorrectly by 10 per cen
    change the number of decimal places for
    currency already in use, you must conver
    the tables in the R/3 System that contai
    currency fields, so that the data integr
    remains. This cannot, however, for both
    organizational reasons and under the run
    aspect be carried out in a productive sy
    The following changes to the TCURX table
    thus lead to the loss of data integrity
    make the changes in a productive system
    transport them into a productive system:
    o Change to the number of decimal places
      existing currency                    
    Do you want to change the decimal places
    all recommendations?                    
    If you Click Yes Button then the system takes you to "Decimal Places for Currency Code" Screen
    there you can change the decimal place of your currency

  • Problem with Condition Type in BAPI_QUOTATION_CREATEFROMDATA2 for Txn VA21

    Hi All,
    I am using BAPI_QUOTATION_CREATEFROMDATA2 for Sales Quotation by txn VA21.
    In this txn,There are 22 condition types available in my system.
    The problem is,it is updating every condition type twice.
    Pls give me the solution.
    Regards,
    Shiv Kant

    Hi,
    I am giving billing document code, we are using BAPI to upload billing documents into SAP.
    you can check pricing conditions code. we are using only two pricing condition types. our technical consultant hardcoded condition types.
    wa_billingdata-salesorg = wa_bill5-sorg.
        wa_billingdata-distr_chan = wa_BILL5-dist.
        wa_billingdata-division = wa_BILL5-div.
        wa_billingdata-doc_type = 'ZSO5'.
        wa_billingdata-ordbilltyp = 'FX'.
        wa_billingdata-bill_date = wa_BILL5-BDATE.
        wa_billingdata-sold_to = wa_BILL5-CUSTNO.
    *    wa_billingdata-price_date = WA_BILL1-BDATE.
       wa_billingdata-country = wa_BILL5-CNTRY.
        wa_billingdata-bill_to = wa_BILL5-custno.
        wa_billingdata-currency = WA_BILL5-CURR.
        wa_billingdata-wbs_elem = wa_bill5-wbsele.
        wa_billingdata-xblnr = wa_bill5-billno.
        wa_billingdata-zuonr = wa_bill5-invoiceno.
    flag1 = 1.
    endif.
    translate wa_bill5-matdesc to upper case.
        SELECT MATNR FROM MARA INTO IT_MARA  up to 1 rows WHERE MATNR = WA_BILL5-MATDESC.
                endselect.
        if sy-subrc = 0.
          wa_billingdata-plant = wa_BILL5-PLANT.
          wa_billingdata-NO_MATMAST = ' '.
          wa_billingdata-material = WA_BILL5-MATDESC.
          wa_billingdata-REQ_QTY = '1'.
          wa_billingdata-ACCTASGNMT = '05'.
       else.
           wa_billingdata-ACCTASGNMT = '05'.
           wa_billingdata-NO_MATMAST = 'X'.
           wa_billingdata-SHORT_TEXT = 'ADAGE MATERIAL'.
           wa_billingdata-TAXCL_1MAT = '0'.
           wa_billingdata-SALES_UNIT = 'EA'.
           wa_billingdata-material = WA_BILL5-MATDESC.
           wa_billingdata-REQ_QTY = '1'.
       endif.
    flag = flag + 1.
        wa_billingdata-ref_item = flag.
        append wa_billingdata to billingdata.
        wa_conditiondata-data_index = flag.
         wa_CONDITIONDATA-cond_value = WA_BILL5-ADVERTISCOST.
        wa_conditiondata-cond_type = 'EK01'.
        append wa_conditiondata to conditiondata.
    clear wa_conditiondata.
        wa_conditiondata-data_index = flag.
         wa_conditiondata-cond_value = WA_BILL5-COMM.
        wa_conditiondata-cond_type = 'ZCOM'.
        append wa_conditiondata to conditiondata.
    clear wa_conditiondata.
    IF TESTRUN IS INITIAL.
    move-corresponding wa_bill5 to wa_bill2.
    wa_bill2-status = 'P'.
    append wa_bill2 to it_bill2.
    modify zzbilling from table it_bill2.
    commit WORK.
    ENDIF.
    REFRESH IT_BILL2.
    endloop.
    flag1 = 0.
    flag = 0.
    IF TESTRUN IS INITIAL.
    CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
    *   EXPORTING
    *     CREATORDATAIN         = creaord
    *     TESTRUN               = 'X'
    *     POSTING               = 'X'
        TABLES
         BILLINGDATAIN         =  billingdata
         CONDITIONDATAIN       =  conditiondata
    *     CCARDDATAIN           =
    *     TEXTDATAIN            =
    *     ERRORS                =
          RETURN                = bapiret
          SUCCESS               = succ.
    Regards,
    Chandra

  • Problem in Conditional tag

    Dear friends,
    I am using conditional tag feature on one of my topics in robohelp and the topic is getting excluded from the output. However, the numbering in TOC doesn't change. For example,I have the following sections in my help file:
    1.1 A
    1.2 B
    1.3 C
    If I apply CT on 1.2 it is excluded from the output but the TOC appears as follows:
    1.1 A
    1.3 C
    1.2 is removed but the numbering is still the same.
    Can anyone help me in solving this problem. The numbering should also get modified in the TOC like:
    1.1 A
    1.2 C

    Is the document going to be updated regularly and you are going to repeatedly import it into a new project? If it is, then maybe linking would be a better option.
    You wouldn't necessarily have to have two documents. Create two documents, one with the numbered headings and one without.
    When you want to update Rh, you use Word's style organiser to apply the un-numbered headings. Then you switch back.
    Of course, you need to check with product management that not having numbering in online help is OK. Better still, challenge why do you need that legal type numbering at all. Sometimes it is because developers like that style of numbering too but they are not the users of the help and documents.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • A sapscript problem!,pls give me help.

    hi,everyone.
    when I maintain a sapscript form, I changed a main window ,then when the program executed ,error:element MAIN window MAIN is not defined for form zsds022. 
    and I don't know how to changed to the previous correct one .
    if angone know this ,pls tell me about the details step to do it .
    how can I solve this problem? I know little about sap script form .
    pls help me ,I will appreciate .

    Ok, I understood your problem, you are getting confused with MAIN window and MAiN element as both having the same name
    Let me tell you stepwise..
    1) goto SE71, give your form name, Change
    2) Click on windows you will see a window by name MAIN.
    3) now double click on MAIN window and press F9(before doing this goto menu Settings--> form Painter and see GRAPHICAL PC EDITOR  unchecked.)
    4) now once you press F9 you will see two text boxes in right hand text box see any text MAIN exists or not, if exist on the left handside it  should be like this /E
    i.e it should look like this... save activate it will work
    /E  MAIN
    If you don't find MAIN in Righthand side... add MAIN on FIRST LINE by creating new line like
    /E MAIN
    Regards,
    Sairam

  • Problems : Payment conditions replication

    Hi,
    I have problem in business agreement and account contract replication between SAP CRM and SAP ISU.
    When I replicate a business agreement from CRM to ISU, it's (almost) OK, but terms of payment is not the same between CRM and ISU.
    When replicate a account contract from ISU to CRM, I obtain the following error (with transaction code SMW01 in SAP CRM) : "Enter the payment conditions" (Message no. CRM_BUPA_FRG0130222).
    Thanks for your help !
    Best regards,
    Rémi

    Hi Denis,
    Thanks for your help !
    I applicate the note 1420329 but problems persist.
    I don't have any ideas to resolve my problem.
    Best regards,
    Rémi

  • Problem with condition editor in Interface determination

    Hi,
    I have 5 receivers for an interface. There are some conditions based on which the message should be processed.
    one of my condition is:
    If field A = CIT* and (field B != IDP or field C != IDP*) then message should be processed to a particular InterfaceMap(Messaeg Map).
    I am facing problems when giving the condition with != in the condition editor of InterfaceDetermiantion.
    When I send a message that is not satisfying the above condition, even then an output file with 0kb is getiitng created. But in this case, the condition should obstruct the message going to Message mapping.
    I thought this could be the problem with != operator in condition editor.
    Can any one suggest if there is any other way that i can proceed.
    Thanks in advance,
    Minisha.

    Hi Suraj,
    Thanks for the suggestion.
    But it didnt work for me.
    Even when i give empty-message handling to ignore, the empty file is getting generated.
    Not even the condition is working.
    I tried only giving (field A u2248 CIT* AND field B != IDP EX ), which should work in this case. As expected, the message is not processed beyond this as the condition is false. But problem is when i tested with other testfile with which the condition given is true, still the message is not being processed. it is now completely obstructing the message even if the condition is true.
    Thanks,
    Mnisha.
    Edited by: Minisha Uthaman on Sep 10, 2009 4:12 PM

  • Problem with condition editor

    Hello,
    In my scenario i use an abap proxy for sending informations from a SAP system to 2 laptop depending of the content of a special field in my interface.
    For that i use the condition editor in the ID but when i want to create my xpath from the schema of the interface, i have a popup with this error message : "Unable to load XSD schema. Check whether the interface exists in the Integration Repository".
    And the strange thing is : this interface exist !
    If somebody has an idea.
    Regards,
    Vincent LECONTE

    Hello Hans,
    Thanks a lot for your help.
    Effectively the problem was that the "Software component" was not marked for the business system... .
    So now i can see the xsd schema and create a condition.
    But after my condition is created when i test my scenario it doesn't work. If i use the transaction "SMXB_MONI" i can see the xml message but the status is "a green flag", it don't go to the step "Receiver Identification" ????
    A if i remove this condition my scenario work fine.
    Sample message sent is :
    <?xml version="1.0" encoding="UTF-8" ?>
    <OutputMess>
      <Description>Voiture</Description>
      <quantity>2</quantity>
      <UOMCode>KG</UOMCode>
    </OutputMess>
    and my condition is simple :
    (/OutputMess/Description = Voiture)
    If you have a wonderfull idea, it will be fine.
    Best Regards,
    Vincent.

Maybe you are looking for

  • An internal database error occurred in the Business Data Connectivity Shared Service. SQL Error Number : 229

     Recently i upgraded my SharePoint server 2013 to SP1, after the upgrade i received following message in manage database Status page " Databases running in compatibility range, upgrade recommended"  for Business Data Connectivity Database. Then i ran

  • PDF links broken in SWF Flashpaper after conversion.

    I've been building a flash app to view documents that exist as PDF files currently. A recent demo of this app viewing the PDFs converted to SWF in Flashpaper viewer embedded in Flash player, we noticed that the embedded links (both interdocument link

  • Youtube playback bug: the video dosen't buffer at the start

    Hello, I'm having this weird problem for youtube videos which I've just encountered few days ago. Basically, on normal occasions when you click the video you'll enter the page and video should immediately start playing as it buffers. However, for som

  • Graph equation formula node problems

    I am using LV6.0. I am having some problems regarding the formula in the formula node. I hope someone can help. The vi is attached Attachments: graph equation.vi ‏15 KB

  • Not create COPA document after Billing

    Hi Experts:    my company product strategy  is  MTO (make to order).It's not created COPA document after billing .I don't know when the COPA should be created. After Billing or after running VA88 .so  I tried to run VA88. I got a COPA document after