I have a  problem while changing quantity value in VA01

Hi,
                   I am written my conditions in User exit save_document_prepare
and in that I have given custom error message. After the error I have to correct the
quantity value and then save it.
But when I am trying to change after error mesasage it gives an Abort message
"Item xxxx doesnot exist."
Here is my code pls help me regarding this
DATA : FLAG(2),
       FCODE LIKE SY-UCOMM,
FCODE = SY-UCOMM.
IF FLAG <> 'X'.
  IF SY-TCODE = 'VA01'.
    IF SY-UCOMM = 'SICH' OR SY-UCOMM = 'OPT1'.
      DATA: BEGIN OF T_VBAK OCCURS 0,
                    VBELN LIKE VBAK-VBELN,
                    VGBEL LIKE VBAK-VGBEL,
                    AUART LIKE VBAK-AUART,
                    NETWR LIKE VBAK-NETWR,
                   END OF T_VBAK.
      DATA : BEGIN OF T_VBAP OCCURS 0,
                     VBELN LIKE VBAP-VBELN,
                     POSNR LIKE VBAP-POSNR,
                     ZMENG LIKE VBAP-ZMENG,
                     KWMENG LIKE VBAP-KWMENG,
             END OF T_VBAP.
      DATA : BEGIN OF I_VBUK OCCURS 0,
               VBELN TYPE VBUK-VBELN,
               RFGSK TYPE VBUK-RFGSK,
             END OF I_VBUK.
      DATA : T_VBAK_RE LIKE T_VBAK OCCURS 0 WITH HEADER LINE,
              WA_VBAK TYPE VBAK.
      DATA : I_NETWR1 TYPE VBAK-NETWR,
             I_NETWR2 TYPE VBAK-NETWR,
             I_NETWR3 TYPE VBAK-NETWR.
      DATA : L_VBELN TYPE VBAK-VBELN.
      SELECT VBELN VGBEL AUART NETWR
         FROM  VBAK
               INTO TABLE T_VBAK.
      IF NOT T_VBAK[] IS INITIAL.
        SELECT VBELN RFGSK
               FROM VBUK
               INTO TABLE I_VBUK
               FOR ALL ENTRIES IN T_VBAK
               WHERE VBELN = T_VBAK-VBELN.
      ENDIF.
      SORT T_VBAK BY VBELN DESCENDING.
      IF NOT T_VBAK[]   IS INITIAL.
        SELECT VBELN POSNR ZMENG KWMENG
        FROM VBAP
        INTO TABLE T_VBAP
        FOR ALL ENTRIES IN T_VBAK
         WHERE VBELN = T_VBAK-VBELN.
      ENDIF.
      LOOP AT T_VBAK where VGBEL = XVBAK-VGBEL.
        IF T_VBAK-AUART = 'TA'.
          I_NETWR2 = T_VBAK-NETWR  + I_NETWR2.
        ENDIF.
      ENDLOOP.
      LOOP AT T_VBAK WHERE VBELN = XVBAK-VGBEL.
        IF T_VBAK-AUART = 'TISC'.
          I_NETWR1 = T_VBAK-NETWR.
        ENDIF.
      ENDLOOP.
      I_NETWR3 = I_NETWR1 - I_NETWR2.
      WA_VBAK = XVBAK.
   READ TABLE T_VBAP WITH KEY VBELN = VBAK-VBELN.
   IF SY-SUBRC = 0.
      LOOP AT XVBAP.
READ TABLE XVBAP WITH KEY VBELN = SPACE.
        IF SY-SUBRC = 0.
          MOVE T_VBAK-VBELN TO XVBAP-VBELN.
          MODIFY XVBAP.
        ENDIF.
      ENDLOOP.
      IF FLAG <> 'X'.
        IF   WA_VBAK-AUART <> 'RE'.
          IF WA_VBAK-NETWR > I_NETWR3.
          MESSAGE E000(ZMS1) WITH I_NETWR3.
                  ENDIF.
                   ENDIF.
        ENDIF.
      ENDIF.
    ENDIF.
   ENDIF.
  ENDIF.
ENDIF.
                                                              Thanks in Advance
                                                                      Ravi

Hi,
This error comes when we use the work area taht is already defined in the program and that u have not created in this exit.
i think in this exit, u have created ur own internal table and workarea for all tables except XVBAP.
just create WA like
<b>data : xvbap type xvbap.</b>
LOOP AT XVBAP.
READ TABLE XVBAP WITH KEY VBELN = SPACE.
IF SY-SUBRC = 0.
MOVE T_VBAK-VBELN TO XVBAP-VBELN.
MODIFY XVBAP.
ENDIF.
ENDLOOP.
IF FLAG <> 'X'.
i had faced the same problem and it got solved in this way.
Hope it helps.
Regards,
Sonika

Similar Messages

  • I have a problem while typing in my MacBook pro. it is showing different characters when i type. for example: qw`e§r]t[y=   this is how when we type "qwerty|" can anyone help me pls?

    I have a problem while typing in my MacBook pro. it is showing different characters when i type. for example: qw`e§r]t[y=   this is how when we type "qwerty|" can anyone help me pls?

    You could just try changing your Input Sources under System Preferences>Language & Text:
    But I kind of doubt that's going to work. It may be a hardware problem or a system problem. If you take it into Apple they might be able to determine which and might advise a reinstallation of System software. I would take it to an Apple Store or an AASP but, first, make sure that you have a backup just in case they suggest a clean install of the system.
    Good luck,
    Clinton

  • Problem while changing Business Area in Cost Center Master Data

    I am having a problem while changing the Business area in cost center master data, the system does not allow to change the business area due to the following reasons;
    1.  The transactional data already exists for that cost center
    2.  The desired date required to be changed, falls between analysis period 01.01.2000 to 31.12.2999
    Can anyone help me in order to reslove this issue
    Thanking in anticipation
    Edited by: Arshad  Iqbal on May 24, 2010 2:10 PM

    Dear Dejan !!
    Thanks a lot for resolving my problem actaully i have tested the scenario in Testing Server by changing the fiscal year and the system allowed to change the business area before any transactional data posted.
    Thanks Once Again
    Regards
    Ch. Arshad Iqbal

  • BAPI_OUTB_DELIVERY_CONFIRM_DEC problem in change quantity again?

    Dear all,
    I used BAPI_OUTB_DELIVERY_CONFIRM_DEC to PGI . And I also want to change the delivered quantity.
    But the bapi did not work . What's the problem?
    DATA: BAPI_Z05DOGI_DELIVERY LIKE BAPIOBDLVHDRCON-DELIV_NUMB ,
    BAPI_Z05DOGI_HEADER_DATA LIKE BAPIOBDLVHDRCON OCCURS 0 WITH HEADER LINE ,
    BAPI_Z05DOGI_HEADER_CONTROL LIKE BAPIOBDLVHDRCTRLCON OCCURS 0 WITH HEADER LINE,
    BAPI_Z05DOGI_ITEM_DATA LIKE BAPIOBDLVITEMCON OCCURS 0 WITH HEADER LINE,
    BAPI_Z05DOGI_ITEM_CONTROL LIKE BAPIOBDLVITEMCTRLCON OCCURS 0 WITH HEADER LINE ,
    BAPI_Z05DOGI_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE .
    CLEAR: BAPI_Z05DOGI_DELIVERY , BAPI_Z05DOGI_HEADER_DATA , BAPI_Z05DOGI_HEADER_CONTROL , BAPI_Z05DOGI_ITEM_DATA ,BAPI_Z05DOGI_ITEM_CONTROL , BAPI_Z05DOGI_RETURN .
    REFRESH: BAPI_Z05DOGI_HEADER_DATA , BAPI_Z05DOGI_HEADER_CONTROL , BAPI_Z05DOGI_ITEM_DATA , BAPI_Z05DOGI_ITEM_CONTROL , BAPI_Z05DOGI_RETURN .
    BAPI_Z05DOGI_DELIVERY = ZMM_WB1-ISSUE .
    BAPI_Z05DOGI_HEADER_DATA-DELIV_NUMB = ZMM_WB1-ISSUE.
    APPEND BAPI_Z05DOGI_HEADER_DATA.
    BAPI_Z05DOGI_HEADER_CONTROL-DELIV_NUMB = ZMM_WB1-ISSUE.
    BAPI_Z05DOGI_HEADER_CONTROL-POST_GI_FLG = 'X'.
    APPEND BAPI_Z05DOGI_HEADER_CONTROL.
    BAPI_Z05DOGI_ITEM_DATA-DELIV_NUMB = ZMM_WB1-ISSUE.
    BAPI_Z05DOGI_ITEM_DATA-DELIV_ITEM = 10.
    BAPI_Z05DOGI_ITEM_DATA-DLV_QTY = XTAB-LFIMG.
    BAPI_Z05DOGI_ITEM_DATA-SALES_UNIT = XTAB-MEINS.
    BAPI_Z05DOGI_ITEM_DATA-DLV_QTY_IMUNIT = XTAB-LFIMG.
    APPEND BAPI_Z05DOGI_ITEM_DATA.
    BAPI_Z05DOGI_ITEM_CONTROL-DELIV_NUMB = ZMM_WB1-ISSUE.
    BAPI_Z05DOGI_ITEM_CONTROL-DELIV_ITEM = 10.
    BAPI_Z05DOGI_ITEM_CONTROL-CHG_DELQTY = 'X'.
    APPEND BAPI_Z05DOGI_ITEM_CONTROL.
    CALL FUNCTION 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'
    EXPORTING
    DELIVERY = BAPI_Z05DOGI_DELIVERY
    HEADER_DATA = BAPI_Z05DOGI_HEADER_DATA
    HEADER_CONTROL = BAPI_Z05DOGI_HEADER_CONTROL
    TABLES
    ITEM_DATA = BAPI_Z05DOGI_ITEM_DATA
    ITEM_CONTROL = BAPI_Z05DOGI_ITEM_CONTROL
    RETURN = BAPI_Z05DOGI_RETURN.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = 'X'
    IMPORTING
    RETURN = BAPI_Z05DOGI_RETURN.
    Can anybody help me ? Thanks very much indeed.
    The error message is :
    I   |VU                  |014   |                                         <
    E   |VU                  |010   |                                         <
    E   |VL                  |605   |                                         <
    E   |VU                  |010   |                                         <
    Thanks and Best Regards.

    I have a mistake. Please see Topic "New! BAPI_OUTB_DELIVERY_CONFIRM_DEC problem in change quantity again?
    ".  Thanks, all.

  • HT201359 i have a problems while purchasing or download a free item in apps store or itunes, it said that you have a problems with previous purchase, it also said that my payment method was decline.,..

    i have a problems while purchasing or download a free item in apps store or itunes, it said that you have a problems with previous purchase, it also said that my payment method was decline.,..

    Hi shldr2thewheel,
         it has been a while since we have last spoke, I would like to let you know, I am still working on getting used to the switch from windows to a Mac/Apple system. I do have a new question for you, I did purchase In Design CS5.5 through journeyed.com through Cuyahoga Community College of which I attend as a student, is there a way to purchase an online book through iTunes to learn that as well? Also, you know me, the struggling student, I would also, when and if the book can be purchased through the iTunes, would need to know if you do know of a much easier book for struggling students like myself and at a reasonable price as well for the In Design CS5.5 program. Our campus bookstore had closed early, and, so did the colleges library and our local library here where I do live, so, I cannot go to either place to purchase a book or to take out a book, plus cash funds are low at this moment as well but, I do have money left on the iTunes account to use, if it can be used. So, can it be used, the iTunes money, towards finding a low priced online book? I am in great need of assistance as I have a project due for my one course for this Tuesday, September 4, 2012.
    Sincerely in need of help once again,
    Kim

  • Error window while changing the value in SelectOneChoice.

    Hi I am facing a problem on change of values in SelectOneChoice, "ERROR For input string: "N"
    Below is how i am implementing SelectOneChoice:
    I am creating values for SelectOneChoice in a Java class:
    *SelectItem itemY=new SelectItem();*
    *itemY.setLabel("Yes");*
    *itemY.setValue("Y");*
    *confirmation.add(itemY);*
    *SelectItem itemN=new SelectItem();*
    *itemN.setLabel("No");*
    *itemN.setValue("N");*
    *confirmation.add(itemN);*
    Using this values in JSFF like this:
    *<af:selectOneChoice value="#{bindings.confURLSubmitted.inputValue}"*
    *label="Conference Website URL Submitted"*
    *required="#{bindings.confURLSubmitted.hints.mandatory}"*
    *shortDesc="#{bindings.confURLSubmitted.hints.tooltip}"*
    *binding="#{backingBeanScope.EditComplianceDetails.confURLSubmitted}"*
    *id="confURLSubmitted"*
    *unselectedLabel="Select One"*
    *autoSubmit="true"*
    *valueChangeListener="#{backingBeanScope.EditComplianceDetails.OnConfURLSubChange}">*
    *<f:selectItems value="#{pageFlowScope.generalLists.confirmation}"*
    *binding="#{backingBeanScope.EditComplianceDetails.si1}"*
    *id="si1"/>*
    *</af:selectOneChoice>*
    And in bean method i am trying to print the selected value in SelectOneChoice:
    *public void OnConfURLSubChange(ValueChangeEvent valueChangeEvent) {*
    *// Add event code here...*
    *System.out.println("this.confURLSubmitted.getValue() "+this.confURLSubmitted.getValue());*
    Now when i try to change the value in SelectOneChoice:
    I am getting an error window "ERROR For input string: "N"
    Any idea y i am getting this error.
    Thanks in Advance

    Remove selectOneChoice value binding and set static value and try
    *<af:selectOneChoice value="XXX"*
    label="Conference Website URL Submitted"
    required="#{bindings.confURLSubmitted.hints.mandatory}"
    shortDesc="#{bindings.confURLSubmitted.hints.tooltip}"
    binding="#{backingBeanScope.EditComplianceDetails.confURLSubmitted}"
    id="confURLSubmitted"
    unselectedLabel="Select One"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.EditComplianceDetails.OnConfURLSubChange}">
    <f:selectItems value="#{pageFlowScope.generalLists.confirmation}"
    binding="#{backingBeanScope.EditComplianceDetails.si1}"
    id="si1"/>
    </af:selectOneChoice>

  • Have a problem while installing Asmlib packages

    hi all
    I have some problem while installing ASMlib packages.
    my OS=Redhat linux 5.3
    kenel version using this command uname -r=2.6.18-128.el5
    I have downloaded packages and successfully installed following 4
    oracleasm-support-2.1.7-1.el5.i386.rpm
    oracleasmlib-2.0.4-1.el5.i386.rpm
    oracleasm-2.6.18-128.el5-2.0.5-1.el5.i686.rpm
    oracleasm-2.6.18-128.el5-debuginfo-2.0.5-1.el5.i686.rpm
    but while installing following got error
    rpm -ivh oracleasm-2.6.18-128.el5debug-2.0.5-1.el5.i686.rpm
    kernel-debug = 2.6.18-128.el5 is needed by oracleasm-2.6.18-128.el5debug-2.0.5-1.el5.i686
    rpm -ivh oracleasm-2.6.18-128.el5PAE-2.0.5-1.el5.i686.rpm
    kernel-PAE = 2.6.18-128.el5 is needed by oracleasm-2.6.18-128.el5PAE-2.0.5-1.el5.i686
    rpm -ivh oracleasm-2.6.18-128.el5xen-2.0.5-1.el5.i686.rpm
    kernel-xen = 2.6.18-128.el5 is needed by oracleasm-2.6.18-128.el5xen-2.0.5-1.el5.i686
    thanx in advance

    I think you just need below rpms to configure asmlib:
    oracleasm-support-2.1.7-1.el5.i386.rpm
    oracleasmlib-2.0.4-1.el5.i386.rpm
    oracleasm-2.6.18-128.el5-2.0.5-1.el5.i686.rpm
    Read this thread:
    Error install ASMLib on RedHat linux

  • I have mic problem while making video and while on loudspeaker its reduce the mic volume alot.

    i have mic problem while making video and while on loudspeaker its reduce the mic volume alot. plz help me out

    iPhone User Guide
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • I have met problem while running script

    i have met problem while running script catalog.sql in oracle 10g r2 , while running it came out from the Database and then i can't get into the database please help ..
    ORA-01081: cannot start already-running ORACLE - shut it down first
    SQL> @C:\oracle\product\10.2.0\db_1\RDBMS\ADMIN\catproc.sql
    DOC>######################################################################
    DOC>######################################################################
    DOC> The following PL/SQL block will cause an ORA-20000 error and
    DOC> terminate the current SQLPLUS session if the user is not SYS.
    DOC> Disconnect and reconnect with AS SYSDBA.
    DOC>######################################################################
    DOC>######################################################################
    DOC>#
    DECLARE
    ERROR at line 1:
    ORA-01012: not logged on
    Disconnected

    You should post it to the Database forum.....
    Greetings...
    Sim

  • Problem while changing decimal places in SAP B1 2007

    Hi Experts,
    I want change the decimal places of Quantity type fields from 2 decimal places to 4 decimal places. But while changing it in Genral settings form ,it shows the error message "Cannot update while another user is connected to the company". it is working in SAP B1 2005B but not in SAP B1 2007
    Please help me if you have any solution on this issue..
    Thanking you in advance

    Paul,
    Please see SAP Note 1247060 as is discusses the fact that this did work in 2005, but the behavior was changed in version 2007 ...
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&;note_numm=0001247060
    Eddy

  • Is there any problem while changing WEBLOGIC server to OC4J

    Hi,
    We have developing a product in Jedeveloper 11g. In the development mode, we are using WEBLOGIC 10.3 as the application server. But during production mode, we have to apply the EAR files in oc4J APPLICATION SERVER.
    While changing this, whether my system will work as such in the WEBLOGIC server?
    Whether I loss any Rich Ajax specific fuctionalities? Is any rework in development is needed?
    While Googling, I found, in JDeveloper 11g oracle prefers WEBLOGIC rather than OC4j. Can anyone advise the reason for this.
    Thanks,
    Prabhash.

    Hi John,
    Thanks for your valuable advise.
    Can you advise is there any difference between OC4j and Oracle Application Server (OAS) . Is the Oracle App Server supports JSF 1.2 specification. While googling, the following link states that JDeveloper 11g supports OAS
    http://www.oracle.com/technology/products/jdev/htdocs/11/as_supportmatrix.html#11g
    Thanks much
    Prabhash

  • Event handling while changing the value or clicking the button

    Hi All,
    I am working on Jdeveloper 11.1.1.5.
    I have a must requirement where i have a textbox and a button.
    Now if a user changes the value of the textbox then i need to show a dialog to the user for the confirmation that whether he wants to continue or not.
    And on click of button i execute my business logic and commit in the database.
    NOTE :- I am opening that dialog on the valueChangeEvent of the textbox.
    Case 1 :-
    User enter a value in the textbox and tab out the field , value change occurs and dialog displayed onto the page. -> CORRECT
    Case 2 :-
    User enter a value in the textbox and does not tab out the field and directly click on the button.In that case , actually valueChange and button code both executes at the same time.I mean to say , the user click on the button , i get the dialog , but my business logic also gets executed. -> INCORRECT(ISSUE)
    How should i restrict the button logic to be executed till the dialog has been shown and user has confirmed.
    Kindly suggest!!!
    Regards,
    Shah

    Hi Shah,
    You can try something like this:
    <af:inputText autoSubmit="true" id="it1" ...>
      <af:setPropertyListener from="true" to="#{viewScope.uncommittedData}" type="valueChange"/>
    </af:inputText>
    <af:commandButton partialTriggers="it1" disabled="#{viewScope.uncommittedData ne 'true'}" .../>AP

  • Problem while changing Sales order using 'BAPI_SALESORDER_CHANGE'

    Hi all,
    Below is my code to update delivery block value:
    FORM call_bapi_salesorder_change .
    DATA:  iv_bapi_view  LIKE order_view.
    DATA: gt_sales_doc TYPE STANDARD TABLE OF sales_key, " Document Numbers to Be Selected
            gt_items TYPE STANDARD TABLE OF bapisdit. " Order Item Data for Document Numbers
    *************************************************************8
    DATA:order_headers_out LIKE bapisdhd OCCURS 0 WITH HEADER LINE.
    DATA:order_header_inx LIKE bapisdh1x.
      DATA: lv_salesdocument LIKE bapivbeln-vbeln.
      data: lv_matnr(10) type c.
      DATA:
    gt_schdule TYPE STANDARD TABLE OF bapischdl, " for gl date & load date
    gt_schdulex TYPE STANDARD TABLE OF bapischdlx, " for partner role and partner function.
            gt_return TYPE STANDARD TABLE OF bapiret2,
            gt_itemin TYPE STANDARD TABLE OF bapisditm,
            gt_iteminx TYPE STANDARD TABLE OF bapisditmx ,
            gt_bapisdh1 TYPE STANDARD TABLE OF  bapisdh1.
      DATA:gs_head_bapi TYPE bapisdh1x,
           gs_schdule TYPE bapischdl,
           gs_schdulex TYPE bapischdlx,
           gs_return TYPE bapiret2,
           gs_itemin TYPE bapisditm,
           gs_iteminx TYPE bapisditmx,
           gs_bapisdh1 TYPE bapisdh1.
      CLEAR : gt_schdule,gt_schdulex,gs_return.
      REFRESH gt_return.
      gs_head_bapi-updateflag = 'U'.
    SORT gt_final BY vbeln.
    CLEAR gs_vbep.
    REFRESH gt_vbep[].
      CLEAR gs_final.
      LOOP AT gt_final1 INTO gs_final.
        gs_itemin-itm_number = gs_final-posnr.
    *move gs_final-matnr to lv_matnr."qx94162
       gs_itemin-material = gs_final-matnr.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
          EXPORTING
            input  = gs_final-matnr
          IMPORTING
            output = gs_final-matnr.
       CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = lv_matnr
        IMPORTING
         output = lv_matnr.
       gs_itemin-material = lv_matnr.
        gs_itemin-material = gs_final-matnr.
        gs_iteminx-itm_number = gs_final-posnr.
        gs_iteminx-updateflag = 'U'.""changed to I
        gs_iteminx-material = 'X'.
        " gs_schdule-req_dlv_bl = gs_final-lifsp. " Delivery block
        gs_schdule-itm_number = gs_final-posnr.
        gs_schdulex-itm_number = gs_final-posnr.
        gs_schdule-sched_line = '0001'.
        gs_schdulex-sched_line = '0001'.
       MOVE gs_final-lifsp to gs_schdule-req_dlv_bl.
        gs_schdule-req_dlv_bl = gs_final-lifsp.
        gs_schdulex-req_dlv_bl = 'X'. " Delivery block
        gs_schdulex-updateflag = 'U'.
        gs_bapisdh1-sales_org = gs_final-vkorg.
        APPEND gs_schdule TO gt_schdule.
        APPEND gs_schdulex TO gt_schdulex.
        APPEND gs_itemin TO gt_itemin.
        APPEND gs_iteminx TO gt_iteminx.
       Append gs_BAPISDH1 to gt_BAPISDH1.
        lv_salesdocument = gs_final-vbeln.
        CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
          EXPORTING
            salesdocument               = lv_salesdocument     
           ORDER_HEADER_IN             = gs_BAPISDH1
            order_header_inx            = gs_head_bapi         
      SIMULATION                  =
      BEHAVE_WHEN_ERROR           = ' '
      INT_NUMBER_ASSIGNMENT       = ' '
      LOGIC_SWITCH                =
      NO_STATUS_BUF_INIT          = ' '
          TABLES
            return                      = gt_return            
       order_item_in               =    gt_itemin
       order_item_inx              = gt_iteminx
      PARTNERS                    =
      PARTNERCHANGES              =
      PARTNERADDRESSES            =
      ORDER_CFGS_REF              =
      ORDER_CFGS_INST             =
      ORDER_CFGS_PART_OF          =
      ORDER_CFGS_VALUE            =
      ORDER_CFGS_BLOB             =
      ORDER_CFGS_VK               =
      ORDER_CFGS_REFINST          =
          schedule_lines                = gt_schdule           
          schedule_linesx               = gt_schdulex          
      ORDER_TEXT                  =
      ORDER_KEYS                  =
      CONDITIONS_IN               =
      CONDITIONS_INX              =
      EXTENSIONIN                 =
      NFMETALLITMS                =
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        REFRESH: gt_schdule, gt_schdulex, gt_itemin , gt_iteminx.
        LOOP AT gt_return INTO gs_return.
          WRITE / gs_return-message .
        ENDLOOP .
      ENDLOOP.
    ENDFORM.                    " CALL_BAPI_SALESORDER_CHANGE
    When I am using material value as 18342 using CONVERSION_EXIT_ALPHA_OUTPUT:
    ORDER_HEADER_IN has been processed successfully
    Material  is not defined for sales org.A101,  distr.chan.00,  language DE
    Error in ITEM_IN 000030
    SCHEDULE_IN has been processed successfully
    The sales document is not yet complete: Edit data
    Sales document 5010000715 was not changed
    and when I am using CONVERSION_EXIT_ALPHA_INPUT (000000000000018342)or  while debuging when I am changing value to  0018342 :
    I am getting below dump:
    Runtime Errors         DATA_LENGTH_0
    Exception              CX_SY_RANGE_OUT_OF_BOUNDS
    Date and Time          21.10.2010 07:22:17
    Information on where terminated
         Termination occurred in the ABAP program "SAPLVBAK" - in
          "MAP_VBAP_TO_BAPISDIT".
         The main program was "RS_TESTFRAME_CALL ".
         In the source code you have the termination point in line 168
         of the (Include) program "LVBAK001".
         The termination is caused because exception "CX_SY_RANGE_OUT_OF_BOUNDS"
          occurred in
         procedure "MAP_VBAP_TO_BAPISDIT" "(FORM)", but it was neither handled local
          nor declared
         in the RAISING clause of its signature.
         The procedure is in program "SAPLVBAK "; its source code begins in line
         99 of the (Include program "LVBAK001 ".
    The same dump I am getting while executing this above BAPI from SE37 tcode with the same test data.
    but I am able to change it though Va02 tcode.
    Edited by: Arora26 on Oct 21, 2010 7:58 AM

    Hi,
    have you searched for OSS notes? The note 1137897 looks like related to your problem. It mentions different BAPI but I assume that both BAPI reuse same routines and therefore it might solve your problem as well.
    Cheers

  • Problem while changing the width of the Indesign document through inx.

    Hi Guys,
    I am facing a problem related to the width of InDesign documents. Description of the problem is as follows:-
    I have created an InDesign document with height = 700 and width = 500 and export this as an inx file (lets say Doc1.inx).
    As "Doc1.inx" is just an xml file I have made certain changes to the height and width fields of the dcoument in it. (Height =900 and Width = 600)
    For Height changes are made under following tags :- <docu>
                                                                                   <docp>
                                                                                     phgt = "U_900" ;
    For Width changes are made under tags :- <docu>
                                                                    <docp>
                                                                      pwdt = "U_600";
    Now when I opened the modified "Doc1.inx" file with InDesign the modifications for height are correctly reflected, but the width of the column doesn't gets changed. Please open the attachments to see the difference.
    Attachment contains the snap shots of documents created at step 1(Initial_Doc1.indd) and step 3(Modified_Doc1.indd).
    What should be the modifications we have to do in inx file to reflect the correct modified width of the document. Also is there any document or article which gives the correct understanding of the tags used in inx files.
    Any help will be appreciable.

    I'm having troubles getting any sensible values at all using CS -- on the other hand, you forgot to mention your version, so I figgered I could try.
    (Just as an example, setting width & height to 600 pt and 900 pt -- you don't mention your units of measure either, is it meters? inches? -- I get "phgt="u_408c2000~0" pwdt="u_4082c000~0"", which doesn't make sense. Cicero's!? [*])
    But further below, I can see some definitions for columns: count (colc="l_1") and some measurements in that same system, which I suspect to be the width and height you are looking for. You switch between describing you succesfully changed the width and height of the document, and complaining the column does not change. Apparently, the column width is defined in itself, rather than using the "document marges" you are used to in the interface itself.
    [*] On second look, I can see more hexadecimal digits in other 'numbers'. It must be hexadecimally encoded IEEE floating point numbers -- "408c2000" decodes to 4.378906, and 4082c000 to 4.085938 -- both valid floating point numbers, but still I wouldn't know in what system.
    I hope your version uses regular decimal notation!

  • Problem while changing the query of the field in Oracle apps 11.5.10

    Hello All,
    Requirement:
    User want to change the query of the LOV attached to Ordered item field on Line items tab on the Sales order form in Order managment
    Block name = 'LINE'
    Field name = 'ORDERED_ITEM_DSP'
    LOV attached to this field in FMB: ITEMS
    LOV attached to this field in front end: ENABLE_LIST_LAMP
    Problem: Following code is firing at all points (Debug messages are appearing at all points) but Query of the LOV attached to item is still same.
    How can in FMB LOV is "ITEMS" and in front end "ENABLE_LIST_LAMP"
    My guess is there is some problem with the LOV name which we are passing in the code below. Because LOV name attached to item are different in front end and FMB. There is no LOV in FMB which has “SYSTEM ITEMS Description” kind of structure.
    I have written following code in custom.pll (l_chr_rg_query is query taken from the record group attached to “ITEMS” named LOV with some modifications ex: rownum<6 so that it will show only 6 records in LOV if it is really firing our query for LOV)
    IF ( form_name = ‘OEXOEORD’
    AND block_name = ‘LINE’
    AND field_name = ‘ORDERED_ITEM_DSP’
    AND event_name = ‘WHEN-NEW-ITEM-INSTANCE’
    THEN
    MESSAGE (‘message1’);
    l_chr_rg_name := ‘XXLION_UNIFORM_CODE_RG’;
    l_chr_rg_query :=
    ‘SELECT item, item_id, item_description, inventory_item_id,item_identifier_type,null           item_identifier_type_meaning, ‘
    || ‘inventory_item, address, cust_address, item_definition_level ‘
    || ‘FROM oe_return_items_v ‘
    || ‘WHERE (sold_to_org_id = :parameter.lov_num_param1 OR sold_to_org_id IS NULL)’
    || ‘ and rownum < 6 ORDER BY item’;
    MESSAGE (‘message2’);
    l_rg_id := FIND_GROUP (l_chr_rg_name);
    MESSAGE (‘message3’);
    IF ID_NULL (l_rg_id)
    THEN
    MESSAGE (‘Creating record group here’);
    l_rg_id :=
    CREATE_GROUP_FROM_QUERY (l_chr_rg_name, l_chr_rg_query);
    END IF;
    errcode := POPULATE_GROUP (l_rg_id);
    MESSAGE (‘ERROCODE is : ‘ || errcode);
    L_lov_id := FIND_LOV (‘ITEMS’); --My guess is this LOV name is the source of problem.
    MESSAGE ('Error code is4');
    SET_LOV_PROPERTY (l_lov_id, group_name, l_rg_id);
    MESSAGE ('Error code is5');
    SET_ITEM_PROPERTY ('LINE.ORDERED_ITEM_DSP', lov_name, 'ITEMS');
    END IF;

    I found that there is no problem with code. My problem is not technical, its a functional problem.
    It is related to Inventory's "System Items" KFF.
    Can anybody tell me, to this "System Items" KFF, one value set is assigned. but it is of none type of value set. so from where the values in LOV are coming?

Maybe you are looking for

  • PLS SPOT THE ERROR

    SELECT NAME FROM EX WHERE NAME IS NULL UNION ALL SELECT NAME FROM EX WHERE NAME IS NOT NULL ORDER BY DECODE(NAME,'MASTER',0,1) NULLS LAST,NAME what is the error in the above query i am getting the foll error SQL Error: ORA-01785: ORDER BY item must b

  • Running Total not working correctly

    I have a running total setup inside a for loop, the problem is that the running total isn't "running" . Below is the syntax <?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,3,1)?> <?xdoxslt:set_variable($_XDOCTX,'DUPE', xdoxslt:get_variable($_XDO

  • Memory Leak in JRockit 8.0 Console?

    After running the console for a couple of hours it starts to react very slow, and after ca. 5-6 hours it hangs with a out of memory exception.. Ove

  • Transform Fields for Ports

    Hi, I'm sending IDocs to a R/3 system. If I look to the control (header) record (EDI_DC40), the field for recipient port (XML-Field RCVPOR) is empty. Does anybody have an idea why? I would like to know how to transform the values for RCVPOR and also

  • The camera issue....

    i have a problem with my camera which is sometimes it takes 4 to 5 seconds to launch it or (camera is not available). is it a hardware or a software issue?