Runtime error when updating service item with BAPI PO CHANGE

Hi,
I get rutime error TABLE_INVALID_INDEX after calls:
BAPI_PO_CHANGE-> PROCESS_NON_INTEGRATED_COMP-> CHANGE_PO_SRV_ITEM -> MS_CHANGE_SERVICE_PACKAGE_PO -> ROW_IN_PO -> CHECK_ACC_PO -> MS_CHANGE_ACCASS_PO -> ESKL_UPDATE.
the reason is, that ESKL internal table is empty, so the function retrieves last entry index, there is no entry , so  sy-tabix = 0 , and function updates with index 0, which causes the runtime error. I dont know why it is empty, maybe I should copy this table gt_srvaccess from BAPI_PO_GETDETAIL  to BAPI_PO_CHANGE.
This error appears only in mode KNTIMOD=2 (Multikontierung), not in KNTIMOD=1(Einfachkontierung), so just when ESKL contains more lines for one PACKAGE_NUMBER.
I am just updating the value ordered to be equal value delivered to close the PO, or delete the item in case ordered >0 and deliveded = 0.
Here is my part of code:
*close existing PO's by changing the value ordered to the value receipted
            move 'X' to w_change_flag.
            w_hdrx-po_number = 'X'.
            if w_total-val_gr_for is not initial.
              w_itemx-delete_ind = 'X'.
              append w_itemx to gt_itemx.
              clear: w_itemx.
              read table gt_services into w_service2 with key pckg_no = w_item-pckg_no.
              if sy-subrc eq 0.                                                                               
read table gt_services into w_service with key pckg_no = w_service2-subpckg_no.
                if sy-subrc eq 0.                                                                               
move: w_total-val_gr_for to w_service-quantity,
                        '1'                to w_service-gr_price.
                  modify gt_services index sy-tabix from w_service transporting quantity gr_price.
                endif.
              endif.
            else. "nothing delivered yet, set deletion flag
              w_itemx-po_item = w_item-po_item.
              w_itemx-delete_ind = 'X'.
              append w_itemx to gt_itemx.
              clear: w_itemx.
              w_item-delete_ind = 'L'.
              modify gt_item index w_count from w_item transporting delete_ind.
            endif.
    call function 'BAPI_PO_CHANGE'
      exporting
        purchaseorder = w_ekko-ebeln
        poheader      = w_header
        poheaderx     = w_hdrx
        testrun       = w_testrun_flag
        no_messaging  = 'X'
      importing
        expheader     = w_exphdr
      tables
        return        = gt_return1
        poitem        = gt_item
        poitemx       = gt_itemx
        poservices    = gt_services.
Thanks, please help.
regards Rob
Edited by: xsmid4 on Nov 2, 2011 11:49 AM
Edited by: xsmid4 on Nov 2, 2011 12:08 PM

Hi,
Take a look at OSS Note 827731. It might be helpful to you.
[ Link for Note 827731|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=827731]
Regards,
koolspy.

Similar Messages

  • R5034 Runtime error when updating ITunes  help - deleted all iTunes/Apple programs and reinstalled ITunes

    R5034 Runtime error when updating ITunes  help - deleted all iTunes/Apple programs and reinstalled ITunes
    help please ?

    solved problems and reinstalled  - 4 hours wasted trying to fix iTunes ...
    Apple could do better to inform users when updating and upgrading  .....

  • Error when updating Service Request - 12.1.3

    eBus 12.1.3 - DB 11.2.0.1 - RHEL 4.8
    When updating a service request we receive the error as follows:
    ORA-01438: value larger than specified precision allowed for this column in Package CS_ServiceRequest_PVT Procedure Update_ServiceRequest.
    The notes input isn't all that long compared to ones in the past. If it is based on another field I can't identify which one it is.
    I enabled a trace during the process and this was the section after the updated was attempted.
    PARSE #125:c=1999,e=1131,p=0,cr=0,cu=0,mis=1,r=0,dep=1,og=1,plh=0,tim=1342466511527089
    EXEC #125:c=5999,e=5829,p=0,cr=1,cu=1,mis=1,r=0,dep=1,og=1,plh=3977838810,tim=1342466511533163
    ERROR #125:err=1438 tim=1342466511533218
    STAT #125 id=1 cnt=0 pid=0 pos=1 obj=0 op='UPDATE CS_INCIDENTS_ALL_B (cr=0 pr=0 pw=0 time=0 us)'
    STAT #125 id=2 cnt=1 pid=1 pos=1 obj=58779 op='TABLE ACCESS BY USER ROWID CS_INCIDENTS_ALL_B (cr=1 pr=0 pw=0 time=0 us cost=1 size=285 card=1)'
    CLOSE #125:c=0,e=42,dep=1,type=0,tim=1342466511533719
    =====================
    PARSING IN CURSOR #124 len=37 dep=1 uid=175 oct=45 lid=175 tim=1342466511533847 hv=1888065881 ad='0' sqlid='aahpwzps8m6at'
    ROLLBACK TO UPDATE_SERVICEREQUEST_PVT
    END OF STMT
    PARSE #124:c=0,e=30,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=0,plh=0,tim=1342466511533844
    EXEC #124:c=1000,e=17838,p=0,cr=0,cu=4,mis=0,r=0,dep=1,og=0,plh=0,tim=1342466511551774
    CLOSE #124:c=0,e=4,dep=1,type=3,tim=1342466511551833
    CLOSE #122:c=0,e=4,dep=1,type=3,tim=1342466511551876
    =====================
    I have compiled the forms for JTF, CS, CSC
    I also ran utlrp.sql to recompile invalid objects and still no luck.
    No luck in metalink thus far. Where would the next logical place be to look for the cause of this error? Thanks

    It appears to be attempting to update all the columns in the statement, I am not sure which ones have data vs which don't.
    <****----------------------STATEMENT---------------------------------------****>
    UPDATE CS_INCIDENTS_ALL_B SET INCIDENT_STATUS_ID = :B174 , INCIDENT_TYPE_ID =
    :B173 , INCIDENT_URGENCY_ID = :B172 , INCIDENT_SEVERITY_ID = :B171 ,
    INCIDENT_OWNER_ID = :B170 , RESOURCE_TYPE = :B169 , INVENTORY_ITEM_ID =
    :B168 , CUSTOMER_ID = :B167 , ACCOUNT_ID = :B166 , CURRENT_SERIAL_NUMBER =
    :B165 , EXPECTED_RESOLUTION_DATE = :B164 , ACTUAL_RESOLUTION_DATE = :B163 ,
    CUSTOMER_PRODUCT_ID = :B162 , BILL_TO_SITE_USE_ID = :B161 ,
    BILL_TO_CONTACT_ID = :B160 , SHIP_TO_SITE_USE_ID = :B159 ,
    SHIP_TO_CONTACT_ID = :B158 , INSTALL_SITE_USE_ID = :B157 ,
    INCIDENT_ATTRIBUTE_1 = :B156 , INCIDENT_ATTRIBUTE_2 = :B155 ,
    INCIDENT_ATTRIBUTE_3 = :B154 , INCIDENT_ATTRIBUTE_4 = :B153 ,
    INCIDENT_ATTRIBUTE_5 = :B152 , INCIDENT_ATTRIBUTE_6 = :B151 ,
    INCIDENT_ATTRIBUTE_7 = :B150 , INCIDENT_ATTRIBUTE_8 = :B149 ,
    INCIDENT_ATTRIBUTE_9 = :B148 , INCIDENT_ATTRIBUTE_10 = :B147 ,
    INCIDENT_ATTRIBUTE_11 = :B146 , INCIDENT_ATTRIBUTE_12 = :B145 ,
    INCIDENT_ATTRIBUTE_13 = :B144 , INCIDENT_ATTRIBUTE_14 = :B143 ,
    INCIDENT_ATTRIBUTE_15 = :B142 , INCIDENT_CONTEXT = :B141 ,
    EXTERNAL_ATTRIBUTE_1 = :B140 , EXTERNAL_ATTRIBUTE_2 = :B139 ,
    EXTERNAL_ATTRIBUTE_3 = :B138 , EXTERNAL_ATTRIBUTE_4 = :B137 ,
    EXTERNAL_ATTRIBUTE_5 = :B136 , EXTERNAL_ATTRIBUTE_6 = :B135 ,
    EXTERNAL_ATTRIBUTE_7 = :B134 , EXTERNAL_ATTRIBUTE_8 = :B133 ,
    EXTERNAL_ATTRIBUTE_9 = :B132 , EXTERNAL_ATTRIBUTE_10 = :B131 ,
    EXTERNAL_ATTRIBUTE_11 = :B130 , EXTERNAL_ATTRIBUTE_12 = :B129 ,
    EXTERNAL_ATTRIBUTE_13 = :B128 , EXTERNAL_ATTRIBUTE_14 = :B127 ,
    EXTERNAL_ATTRIBUTE_15 = :B126 , EXTERNAL_CONTEXT = :B125 , RESOLUTION_CODE =
    :B124 , PROBLEM_CODE = :B123 , ORIGINAL_ORDER_NUMBER = :B122 ,
    PURCHASE_ORDER_NUM = :B121 , CLOSE_DATE = :B120 , PUBLISH_FLAG = :B119 ,
    OBLIGATION_DATE = :B118 , QA_COLLECTION_ID = :B117 , CONTRACT_SERVICE_ID =
    :B116 , CONTRACT_ID = :B115 , CONTRACT_NUMBER = :B114 , PROJECT_NUMBER =
    :B113 , CUSTOMER_PO_NUMBER = :B112 , CUSTOMER_TICKET_NUMBER = :B111 ,
    TIME_ZONE_ID = :B110 , TIME_DIFFERENCE = :B109 , PLATFORM_ID = :B108 ,
    PLATFORM_VERSION = :B107 , PLATFORM_VERSION_ID = :B106 , DB_VERSION = :B105
    , CP_COMPONENT_ID = :B104 , CP_COMPONENT_VERSION_ID = :B103 ,
    CP_SUBCOMPONENT_ID = :B102 , CP_SUBCOMPONENT_VERSION_ID = :B101 ,
    CP_REVISION_ID = :B100 , INV_ITEM_REVISION = :B99 , INV_COMPONENT_ID = :B98
    , INV_COMPONENT_VERSION = :B97 , INV_SUBCOMPONENT_ID = :B96 ,
    INV_SUBCOMPONENT_VERSION = :B95 , SITE_ID = :B94 , CUSTOMER_SITE_ID = :B93 ,
    TERRITORY_ID = :B92 , CUST_PREF_LANG_ID = :B91 , COMM_PREF_CODE = :B90 ,
    CUST_PREF_LANG_CODE = :B89 , LAST_UPDATE_CHANNEL = :B88 , TIER = :B87 ,
    TIER_VERSION = :B86 , OPERATING_SYSTEM = :B85 , OPERATING_SYSTEM_VERSION =
    :B84 , DATABASE = :B83 , CATEGORY_ID = :B82 , GROUP_TYPE = :B81 ,
    OWNER_GROUP_ID = :B80 , GROUP_TERRITORY_ID = :B79 , OWNER_ASSIGNED_TIME =
    :B78 , OWNER_ASSIGNED_FLAG = :B77 , UNASSIGNED_INDICATOR = :B76 ,
    INV_PLATFORM_ORG_ID = :B75 , PRODUCT_REVISION = :B74 , COMPONENT_VERSION =
    :B73 , SUBCOMPONENT_VERSION = :B72 , CATEGORY_SET_ID = :B71 ,
    EXTERNAL_REFERENCE = :B70 , SYSTEM_ID = :B69 , ERROR_CODE = :B68 ,
    INCIDENT_OCCURRED_DATE = :B67 , INCIDENT_RESOLVED_DATE = :B66 ,
    INC_RESPONDED_BY_DATE = :B65 , INCIDENT_LOCATION_ID = :B64 ,
    INCIDENT_ADDRESS = :B63 , INCIDENT_CITY = :B62 , INCIDENT_STATE = :B61 ,
    INCIDENT_COUNTRY = :B60 , INCIDENT_PROVINCE = :B59 , INCIDENT_POSTAL_CODE =
    :B58 , INCIDENT_COUNTY = :B57 , SR_CREATION_CHANNEL = :B56 , COVERAGE_TYPE =
    :B55 , BILL_TO_ACCOUNT_ID = :B54 , SHIP_TO_ACCOUNT_ID = :B53 ,
    CUSTOMER_PHONE_ID = :B52 , CUSTOMER_EMAIL_ID = :B51 ,
    LAST_UPDATE_PROGRAM_CODE = :B50 , LAST_UPDATED_BY = :B49 ,
    LAST_UPDATE_LOGIN = :B48 , LAST_UPDATE_DATE = :B47 , BILL_TO_PARTY_ID =
    :B46 , SHIP_TO_PARTY_ID = :B45 , PROGRAM_ID = :B44 , PROGRAM_APPLICATION_ID
    = :B43 , REQUEST_ID = :B42 , PROGRAM_LOGIN_ID = :B41 , BILL_TO_SITE_ID =
    :B40 , SHIP_TO_SITE_ID = :B39 , STATUS_FLAG = :B38 , OBJECT_VERSION_NUMBER =
    :B37 +1, INCIDENT_POINT_OF_INTEREST=:B36 , INCIDENT_CROSS_STREET=:B35 ,
    INCIDENT_DIRECTION_QUALIFIER=:B34 , INCIDENT_DISTANCE_QUALIFIER=:B33 ,
    INCIDENT_DISTANCE_QUAL_UOM =:B32 , INCIDENT_ADDRESS2 =:B31 ,
    INCIDENT_ADDRESS3=:B30 , INCIDENT_ADDRESS4=:B29 , INCIDENT_ADDRESS_STYLE=
    :B28 , INCIDENT_ADDR_LINES_PHONETIC =:B27 , INCIDENT_PO_BOX_NUMBER =:B26 ,
    INCIDENT_HOUSE_NUMBER =:B25 , INCIDENT_STREET_SUFFIX =:B24 ,
    INCIDENT_STREET =:B23 , INCIDENT_STREET_NUMBER =:B22 , INCIDENT_FLOOR=:B21 ,
    INCIDENT_SUITE =:B20 , INCIDENT_POSTAL_PLUS4_CODE =:B19 ,
    INCIDENT_POSITION =:B18 , INCIDENT_LOCATION_DIRECTIONS=:B17 ,
    INCIDENT_LOCATION_DESCRIPTION =:B16 , INSTALL_SITE_ID =:B15 ,
    INV_ORGANIZATION_ID= :B14 , OWNING_DEPARTMENT_ID = :B13 ,
    INCIDENT_LOCATION_TYPE = :B12 , INCIDENT_LAST_MODIFIED_DATE = SYSDATE,
    MAINT_ORGANIZATION_ID = :B11 , INSTRUMENT_PAYMENT_USE_ID = :B10 ,
    SLA_DATE_1 = :B9 , SLA_DATE_2 = :B8 , SLA_DATE_3 = :B7 , SLA_DATE_4 = :B6 ,
    SLA_DATE_5 = :B5 , SLA_DATE_6 = :B4 , SLA_DURATION_1 = :B3 , SLA_DURATION_2
    = :B2
    WHERE
    ROWID = :B1
    <****----------------------END STATEMENT---------------------------------------****>
    After that statement this is what the tkprof generated reports shows
    <****------------------------------------TKPROF-----------------------------------------****>
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 1 1 0
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.00 0.00 0 1 1 0
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 175 (recursive depth: 1)
    Rows Row Source Operation
    0 UPDATE CS_INCIDENTS_ALL_B (cr=0 pr=0 pw=0 time=0 us)
    1 TABLE ACCESS BY USER ROWID CS_INCIDENTS_ALL_B (cr=1 pr=0 pw=0 time=0 us cost=1 size=285 card=1)
    SQL ID: aahpwzps8m6at
    Plan Hash: 0
    ROLLBACK TO UPDATE_SERVICEREQUEST_PVT
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.00 0.01 0 0 4 0
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.00 0.01 0 0 4 0
    Misses in library cache during parse: 0
    0 UPDATE CS_INCIDENTS_ALL_B (cr=0 pr=0 pw=0 time=0 us)
    1 TABLE ACCESS BY USER ROWID CS_INCIDENTS_ALL_B (cr=1 pr=0 pw=0 time=0 us cost=1 size=285 card=1)
    SQL ID: aahpwzps8m6at
    Plan Hash: 0
    ROLLBACK TO UPDATE_SERVICEREQUEST_PVT
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.00 0.01 0 0 4 0
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.00 0.01 0 0 4 0
    Misses in library cache during parse: 0
    Parsing user id: 175 (recursive depth: 1)
    <****------------------------------------END TKPROF-----------------------------------------****>

  • Runtime Error when trying to connect with Media manager

    Whenever I try to connect to the Media manager with Blackberry Desktop manager, I get "Runtime Error"!
    It says: "Program:C:\Program Files\Roxio\MediaManager 9\MediaManager9.exe"  Then it says "This application has requested the Runtime to termnate it in an unusual way.  Please contact the application's support team for more information." 
    I seached and learned it might be that roxio is not running and to enable it going through the Start menu "msconfig".....it shows roxio "stopped" but also enabled. 
    Help! What next?  This didn't begin happening until I followed a prompt telling me to update! 

    dear JLK, I must agree with herb: 'google is your friend'.
    To give you a few pointers:
    - The nmap output shows no 3389/tcp open, which means you will not be able to use the terminal server on that host, even if it where active.
    - Check if the windows host you are trying to reach has a terminal server running (which is the windows server component which is responsible for serving remote desktop connectons), or has windows desktop sharing enabled (which is the windows client/non server variant responsible for serving remote desktop connections)
    - Check if the windows host your are trying to reach has a firewall of some sort (the windows embedded one, or a 3rd party one) enabled.
    - Also, can other machines use remote desktop on that machine?

  • HT201442 3004 error when updating my iPad with the latest software

    hi Guys as heading suggests I have a 3004 error after loading my iPad with an update.
    My iPad screen shows the itunes icon with a image of the plug in cable just underneath it.
    I have turned the iPad off and on, I have turned the PC where my iTunes is off and on, I have check for further updates and I have ran Fix it for Windows 7 and I still cant get itunes and my iPad to align as being completed and up to date.
    Any suggestions?

    Check here for the cause of the 3004 error and how to deal with it:
    http://support.apple.com/kb/TS3694#communication

  • Preventing concurrency errors when updating a database with AJAX

    Here is a question that has arisen on my current project. What are some strategies for avoiding concurrency errors in cases where a given user could attempt to modify the same row in the database with simultaneous requests (say, that he updates one column with information with an AJAX call, then immediately submits a form that updates the same row)? In which layer(s) would this best be handled? Is the best alternative to make the AJAX updates synchronous, rather than asynchronous?

    pford68 wrote:
    Here is a question that has arisen on my current project. What are some strategies for avoiding concurrency errors in cases where a given user could attempt to modify the same row in the database with simultaneous requests (say, that he updates one column with information with an AJAX call, then immediately submits a form that updates the same row)? In which layer(s) would this best be handled? Is the best alternative to make the AJAX updates synchronous, rather than asynchronous?The database and database driver should handle that situation.

  • Errors When Updating a  WO with a Request Number (SR Number)

    Hi Team,
    While updating an existing WO with SR number (Fault Number) , encounting with the following error message.
    The following errors appear
    1)The work/service request associated with work order is invalid
    2)The association/disassociation of request to work order is failed since a severe error occured while valiation attributes
    Any inputs were highly appreciated.
    Thanks
    Radha.

    The issue is resolved by upgrading to file EAMFANDF.fmb 120.105.12010000.50 or higher.
    The following bug outlines this solution:
    Bug 13702520 - ACTIVITY IS ASSOCIATED BUT IS NOT SHOWN IN THE DEFINE ASSET NUMBER FORM
    The Patch.13702520 is applied to test environment and tested successfully.

  • IOS 7 Error when updating iphone 4 with new itunes account

    Hi Guys, my phone is an Iphone 4, i tried creating a new itunes user account (as i was using my sons) then when i tried to peform an IOS7 update, it had an"upload Error" Message and i lost everything on my phone?

    Take a look at this:
    Errors related to third-party security software
    Error 2, 4 (or -4), 6, 1000, 9006
    Follow the steps to troubleshoot security software. Often, uninstalling third-party security software will resolve these errors.
    There may be third-party software that modifies your default packet size in Windows by inserting a TcpWindowSize entry into your registry. An incorrectly set default packet size can cause these errors. Contact the manufacturer of the software that installed the packet size modification for assistance or follow this article by Microsoft: How to reset Internet Protocol (TCP/IP).
    Verify that access to ports 80 and 443 are allowed on your network.
    Verify that communication to albert.apple.com or phobos.apple.com isn't blocked by a firewall or other Internet security setting.
    Discard the .ipsw file, open iTunes and attempt to download the update again. See the steps under "Advanced steps > Rename, move, or delete the iOS software file (.ipsw)" below for file locations.
    Restore your device while connected to a different network.
    Restore using a different computer.
    From
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/TS3694#error6

  • Runtime error when updating

    im getting a runtime message that sysa to re-install irunes...but i can only go so far and i get it again

    Hi,
    Take a look at OSS Note 827731. It might be helpful to you.
    [ Link for Note 827731|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=827731]
    Regards,
    koolspy.

  • Runtime Error when Posting Invoice with text added (MIRO)

    Hi Gurus,
    We are getting a shortdump (runtime error) when we post certain invoices in MIRO. This happens when we input some text in the text field or add some text to the NOTE tab.
    We are having exception ERROR_DP raised in the program c_textedit_control.
    If the text field is blank and nothing is writing in the NOTE tab, the invoice gets posted with no problem.
    Has anyone come accross this issue before and how did you solve it please.
    Thanks.

    are u processing thru BADI, then it is very easy there are interfaces and methods for handling texts. u sud not get any error and plz never write commit work in BADI.
    May be i cud provide more help if u share more details but let me tell more but let me share one recent development that i did.
    In ME59n when we do PR TO PO then texdts sud be copied to header text in PO and get reflected in PO. the coding is like below may be can give some clues wid ur MIRO stuff.
    METHOD if_ex_me_process_po_cust~process_header.
    *  Author        : Prasenjit Bist                                          *
    *  ID            : PRBIST                                                  *
    *  Date          : 04.08.2011                                              *
    *  Changes       : New Devlopment                                          *
    *  Change Request:                                                         *
    *  Description: To copy LSP information in PO                               *
    TYPES:
            BEGIN OF ty_text,
              auto_pr_po TYPE zman_auto_pr_po,
              plant TYPE zman_plant,
              vendor TYPE zman_vendor,
              lsp_vendor TYPE zman_lsp_name,
              contract_no_text TYPE zman_contract_no_text,
            END OF ty_text.
      TYPES:
           BEGIN OF ty_address,
             ort01      TYPE ort01_gp,  " city
             ort02      TYPE ort02_gp,  " district
             pfach      TYPE pfach,     " PO Box
             pstlz      TYPE pstlz,     " Postal code
             region     TYPE regio,     "Region (State, Province, County)
             telf1      TYPE telf1,     "1st telephone number
             telf2      TYPE telf2,     "2nd telephone number
             telfx      TYPE telfx,     "Fax number
             land1      TYPE land1,
           END OF ty_address.
      DATA:
       get the header level details
            ls_mepoheader TYPE mepoheader,
            lt_purchase_order_items TYPE purchase_order_items,
            ls_purchase_order_items LIKE LINE OF lt_purchase_order_items,
       get the line item details
            lt_mepoitem TYPE STANDARD TABLE OF mepoitem,
            ls_mepoitem TYPE mepoitem,
            lt_textlines TYPE mmpur_t_textlines,
            ls_textlines LIKE LINE OF lt_textlines,
    TEXT TYPES
            lt_texttypes TYPE mmpur_t_texttypes,
            ls_texttypes LIKE LINE OF lt_texttypes.
      DATA: l_name TYPE thead-tdname,
            ls_header TYPE thead,
            lt_lines TYPE STANDARD TABLE OF tline,
            ls_lines TYPE tline,
            l_tdobject TYPE thead-tdobject,
            l_metafield TYPE mmpur_metafield.
      DATA: ls_text TYPE ty_text,
            l_text(50).
      DATA: l_continue(1).
      DATA: l_pass_vendor TYPE lifnr,
            l_pass_plant TYPE werks,
            l_name1(35).
    fetch the address
      DATA: ls_address TYPE ty_address,
            l_landx    TYPE landx.
      CONSTANTS: lc_id TYPE thead-tdid     VALUE 'F01',
                 lc_langu TYPE thead-tdspras  VALUE 'E',
                 lc_object TYPE thead-tdobject VALUE 'EKKO'.
      CONSTANTS: lc_set(1) VALUE 'X',
                 lc_vendor(11) VALUE 'Vendor:    ',
                 lc_lsp_vendor(11) VALUE 'LSP Vendor:',
                 lc_contract_no_text(14) VALUE 'Contract Text:'.
      CLEAR: l_continue.
      IF sy-uname EQ 'PRBIST'.
    Read the header data
        ls_mepoheader = im_header->get_data( ).
    read teh item level data.
       break prbist.
        lt_purchase_order_items = im_header->get_items( ).
        LOOP AT lt_purchase_order_items INTO ls_purchase_order_items.
    The item attribute of the structure is reference to line item
          ls_mepoitem = ls_purchase_order_items-item->get_data( ).
          APPEND ls_mepoitem TO lt_mepoitem.
        ENDLOOP.
    CHECK VENDOR IS THE ONE WE WANT.
        SELECT SINGLE name1 FROM lfa1 INTO l_name1 WHERE lifnr = ls_mepoheader-lifnr.
    First read the vebdor name based on LIFNR.
        TRANSLATE l_name1 TO UPPER CASE.
        IF ( l_name1 EQ 'LSP1' ) OR ( l_name1 EQ 'LSP2' ).
          LOOP AT lt_mepoitem INTO ls_mepoitem.
            TRANSLATE ls_mepoitem-werks TO UPPER CASE.
            IF ls_mepoitem-werks EQ 'FI01'.
              l_continue = lc_set.
              l_pass_vendor = ls_mepoheader-lifnr.
              l_pass_plant = ls_mepoitem-werks.
              EXIT.
            ENDIF.
          ENDLOOP.
        ENDIF.
        IF l_continue EQ lc_set AND sy-tcode EQ 'ME21N'.
    Call the POP UP screen to display LPS information.
          CALL FUNCTION 'ZMAN_LSP_POP_UP'
            EXPORTING
              im_vendor = l_pass_vendor
              im_plant  = l_pass_plant
            IMPORTING
              ex_text   = l_text.
    GET Text Object (TTXOB)
          im_header->if_longtexts_mm~get_textobject(
                        IMPORTING ex_tdobject = l_tdobject
                                  ex_metafield = l_metafield ).
    GET TEXT IDS
          im_header->if_longtexts_mm~get_types(
                        IMPORTING ex_texttypes = lt_texttypes ).
    CHECK TEXT TYPE 'F01' EXISTS.
          READ TABLE lt_texttypes INTO ls_texttypes WITH  KEY tdid = lc_id.
          IF sy-subrc EQ 0.
    UPDATING ITEM TEXT.
            MOVE: l_tdobject TO ls_textlines-tdobject,
                  ls_texttypes-tdid TO ls_textlines-tdid,
                  '*' TO ls_textlines-tdformat.
         break prbist.
            ls_text = l_text.
         CONCATENATE l_text ls_texttypes-tdtext INTO ls_textlines-tdline.
           CONCATENATE ls_text-vendor
                       ls_text-plant
                       ls_text-lsp_vendor
                       ls_text-contract_no_text
                                               INTO ls_textlines-tdline SEPARATED BY space.
           APPEND ls_textlines TO lt_textlines.
          INSERT VENDOR
           CLEAR ls_textlines-tdline.
           CONCATENATE lc_vendor ls_text-vendor INTO ls_textlines-tdline SEPARATED BY space.
           APPEND ls_textlines TO lt_textlines.
          INSERT LSP VENDOR
            CLEAR ls_textlines-tdline.
            CONCATENATE lc_lsp_vendor ls_text-lsp_vendor INTO ls_textlines-tdline SEPARATED BY space.
            APPEND ls_textlines TO lt_textlines.
          INSERT CONTRACT TEXT.
            CLEAR ls_textlines-tdline.
            CONCATENATE lc_contract_no_text ls_text-contract_no_text INTO ls_textlines-tdline SEPARATED BY space.
            APPEND ls_textlines TO lt_textlines.
         INSERT A BLANK LINE.
            CLEAR ls_textlines-tdline.
            APPEND ls_textlines TO lt_textlines.
    INSERT addreSS CAPTION.
            CLEAR ls_textlines-tdline.
            MOVE 'Address:' TO ls_textlines-tdline.
            APPEND ls_textlines TO lt_textlines.
            break prbist.
    READ THE ADDRESS
            SELECT SINGLE   ort01      " city
                            ort02      " district
                            pfach      " PO Box
                            pstlz      " Postal code
                            regio      "Region (State, Province, County)
                            telf1      "1st telephone number
                            telf2      "2nd telephone number
                            telfx      "Fax number
                            land1      "COUNTRY
            FROM lfa1 INTO ls_address WHERE lifnr = ls_mepoheader-lifnr.
    GET COUNTRY
            SELECT SINGLE landx FROM t005t INTO l_landx WHERE spras = 'E' AND land1 = ls_address-land1.
    INSERT ADDRESS DETAILS.
            CLEAR ls_textlines-tdline.
            CONCATENATE ls_address-ort01 ls_address-ort01 INTO ls_textlines-tdline SEPARATED BY space.
            APPEND ls_textlines TO lt_textlines.
    INSERT COUNTRY.
            CLEAR ls_textlines-tdline.
            MOVE l_landx TO ls_textlines-tdline.
            APPEND ls_textlines TO lt_textlines.
    TELEPHONE DETAILS
            CLEAR ls_textlines-tdline.
            CONCATENATE 'Tel:' ls_address-telf1 '/' ls_address-telf2 INTO ls_textlines-tdline.
            APPEND ls_textlines TO lt_textlines.
    FAX DETAILS.
            CLEAR ls_textlines-tdline.
            CONCATENATE 'Fax:' ls_address-telfx INTO ls_textlines-tdline.
            APPEND ls_textlines TO lt_textlines.
          SAVE THE HEADER LONG TEXT.
            im_header->if_longtexts_mm~set_text(
                          EXPORTING im_tdid = ls_texttypes-tdid
                                    im_textlines = lt_textlines ).
          ENDIF.
        ELSEIF l_continue EQ lc_set AND sy-tcode EQ 'ME59N'.
    No need to display POPUP simply read the values and show.
    if not
        ENDIF. "(l_continue = 'X' and transaction code is ME21N or ME59N)
        CLEAR l_continue.
      ENDIF. "(sy-uname)
    ENDMETHOD.
    Edited by: Prasenjit Singh Bist on Aug 14, 2011 10:15 AM
    Edited by: Prasenjit Singh Bist on Aug 14, 2011 10:21 AM

  • Runtime error when syncing P1i with PC

    I get a runtime error when syncing my P1i to PC. The error is linked with this file, 'dxp syncml.exe', and the application is said to request the 'Runtime to terminate it in an unusual way'. How do you fix this?

    Thanks Joanne. Let me give you feedback on whats happening so far.
    After some doing, I discovered that my firewall is controlled by Norton Firewall Provider. (Bear in mind I am a novice in terms of managing these computer protocols). To modify the firewall settings, Norton calls this in their the control panel  'Smart firewall', I go to program control then configure. A list of programs came up with the options to add, modify, remove or rename. I searched the list and found that DXP SyncML.exe and mRouterRuntime.exe were listed and set to 'Auto' in the Access column. I noticed that under access, the options include auto, allow, block and custom. I reasoned that 'allow' is the highest level of access, and to support the sync feature, I changed the status to 'allow' from 'auto' for the DXP SyncML and mRouterRuntime executable files. If you believe it is ok and safer to keep the auto status, advise me.
    I did not find in the listing any of these programs; Bearer Abstraction Layer (SCBAL.exe), Generic Device Management Executable (Generic.exe) or Symbian Connect Object Model for Symbian Connect QI (SymbianConnectRuntime.exe).I did a search and located the generic.exe and the other two files under 'common files' in 'teleca shared' folder, and 'symbian' in 'shared' and 'symbianconnectruntime', respectively.
    Norton's control panel for Smart Firewall gave me three options when adding programs: allow, block and manual configure internet settings. The last of the three was recommended by Norton. However, I selected 'allow' for the generic.exe, symbianconnectruntim.exe and scba.exe.Please advise if you believe I need to modify the terms I entered to set up this procedure (is there a better setting that allow me to achieve the same level of functionality without compromising my security?)
    Now Joanne, whats left is for me to try the sync after making these changes. I feel as if I accomplished a lot by only reaching this far. I will have to do a reinstallation of the SE PC Suite before moving on though. Let me explain.
    When the sync failed repatedly because of the unexpected termination linked with the dxp syncml.exe, I uninstalled the SE PC Suite which was done from a disc, and installed a version from the Sony website. That version is 1.6.0, with a copyright date of 2006. With this, the sync worked. By the way I am using Windows 7 Starter. Now what I am going to do later is uninstall this version of the suite, and reinstall the one from the disc that was linked with the problem we are solving. When I do that later, I will give you feedback.
    Just in case you are wondering, I have a vested interest in using the PC Suite from the disc. This application works fine for the file manager component where the drive on the phone and removable media card are read. In the 1.6.0 version, I cannot get the file manager to see the phone as connected though when I put the card (is that called M2 disc?) in the phone, it reads. So, I although sync is working with the 1.6.0 version from the website, I want to use the version I have on disc if the sync component gets over the problem we are trying to solve.
    Hope I am on the right  track so far I thank you profusely for your patience and dealing with my qeurry; the solution will make a world of a difference for me and many other P1i owners. Look foward to the follow up
    Rohan Bell

  • Runtime error when trying to use Thinkvantage system updater

    I get a runtime error when trying to use the Thinkvantage system updater.Have tried it numerous times and this is the exact message:
    "Runtime error!
    Program:C:\Program Files\Lenovo\System Update\tvsu.exe
    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information."
    Can somebody please help me to get the Thinkvantage system updater working properly?
    Thanks-George
    This issue has since been resolved.Thanks-G

    I'm getting the same error.   I tried reinstalling system updater but it didn't help.

  • DTW Error when updating items

    I'm trying to update all items with pricing and min/max.
    DTW returns all in error:
    "Server violation of PRIMARY KEY constraint "OITW" PRIMARY
    cannot insert duplicate key in object "OITW"
    Any help would be appreciated.
    regards,
    m. Jenkins

    Hi,
    Were your objects Not Updated or Not Created?
    I encountered the same error. I'm currently doing a second import with no rollback. I think the problem is specific to a field.  I will troubleshoot and update with any positive findings.
    Thanks!
    Francois

  • HT1926 Hi, got an update notification to go to 11.1.4 and then an R6304 runtime error when I try to start it. I downloaded Itunes again, and it will not complete intallation.... help please

    Good Day,
    Got an automatic upgrade notification to Itunes 11.1.4  Downloaded OK, but then got an R6304 Runtime error when it completed.
    I tried starting from the screen shortcut and got the same message. I tried downloading from scratch from the Apple site, and got
    the same errors.
    Any help would be appreciated.
    Thanks,

    Follow the instructions of tt2 in: https://discussions.apple.com/thread/5822086

  • Installing my updated CS4 on a new I Mac: "legacy Java SE 6 runtime" error when i try to open psd

    Bought the original Creative Suite package 1n 2004, installed on my new apple G5.  Upgraded in 2009 to CS4 and sometime installed on a 2nd computer.  I'm sure I registered each product.  I don't have the original disk's, but I have the serial number. I'm trying to install CS on my new I Mac.  It fails authorization in the download.  I went ahead and downloaded the 30 day trail like suggested.  I get the "legacy Java SE 6 runtime" error when i try to open psd.  After my first attempt failed and I read the help lessons on deactivation, I believe I have deactivated from the G5, but I'm still getting the same code when trying to open psd.

    Download and install: Java for OS X 2014-001 
    Reboot your Mac.
    Let me know how it goes.
    Gene

Maybe you are looking for