Empty PO_DOCUMENT_TYPES table

Hi,
I am implementing an interface from a custom application to Oracle Financials, using the provided interface table.
I also need to be able to cancel Purchase Orders on database level using
po_document_control_pub.control_document (...)
I keep getting the same error
You do not have sufficient authority to control the status of this document.
no matter which user, responsibility and application I initialize with.
By looking at the stored procedure code line by line I deducted that the problem is, that there aren't any records in
PO_DOCUMENT_TYPES (a synonym for PO_DOCUMENT_TYPES_VL)
The control_document procedure uses this table to check the document type and document subtype and the access rights for the document type.
If I take a look at PO_DOCUMENT_TYPES_ALL_B, I have all the records for the document types (f.i PO STANDARD, PO BLANKETT) and settings in there, but when selecting from PO_DOCUMENT_TYPES returns no records.
Additionally, when I cancel a PO in the application itself, it works swimmingly. Only when I try to execute the stored procedure on the database level I can't read the document types.
Therefore I am assuming, it is a security issue, or some configuration issue.
I am not a Oracle developer or dba, so I don't know the first thing on how to proceed... please help.
cheers, Heino

You have initialized the user/resp/application but have you set your context?
Select org_id from po_document_types_all. Let's say it is 123.
This is the org_id you need to initialize your environment with.
If you are on 11.5.10, add the following code before calling the api
begin
dbms_application_info.set_client_info(123);
end;
If you are on R12, use mo_global.set_policy_context.
Hope this helps,
Sandeep Gandhi

Similar Messages

  • If empty internal table in select for all entries what is the result?

    In select all entries statement , if empty internal table is there then  what is the result.

    Hello,
    If the table is empty then it will select all the records table....
    To aviod this u have check the body of the itab.
    If not itab[] is intial.
    select * ....
    endif.
    I useful reward.
    Vasanth

  • The release indicate of procduction order is empty   in table afpo

    hi:
    the release indicate fields of production order is empty in table
    afpo, the new production order is generated after i read PP master
    data .please help me analyze why the indicate isnot 1 because the
    status of production order is REL.
    best regards.

    Hi,
    When read PP master is done for a prod order in REL status, the status changes back to CRTD (created) in the order.
    Regards,
    Senthilkumar

  • DB02 view is empty on Table and Index analyses  DB2 9.7 after system copy

    Dear All,
                 I did the Quality refresh by System copy export/import method. ECC6 on HP-UX DB29.7.
    After Import Runstats status n Db02 for Table and Index analysis was empty and all value showing '-1'. Eventhough
    a) all standard backgrnd job scheduled in sm36
    b) Automatic runstats are enabled in db2 parameters
    c) Reorgchk all scheduled periodically from db13 and already ran twice.
    4) 'reorgchk update statistics on table all' was also ran on db2 level.
    but Run stats staus in db02 was not getting updated. Its empty.
    Please suggest.
    Regards
    Vinay

    Hi Deepak,
    Yes, that is possible (but only offline backup). But for the new features like reclaimable tablespace (to lower the high watermark)
    it's better to export/import with systemcopy.
    Also with systemcopy you can use index compression.
    After backup and restore you can have also reclaimable tablespace, but you have to create new tablespaces
    and then work with db6conv and online table move to move one tablespace online to the new one.
    Best regards,
    Joachim

  • Consuming webservice in ABAP - empty complexType table

    Hello,
    I've the following problem:
    I consume a webservice, which has two parameters as response-result. The first parameter is a simple type. The second parameter is a table type described  as follows in the WSDL:
    - <element name="getVarListResponse">
    - <complexType>
    - <sequence>
      <element name="getVarListReturn" type="impl:ServiceResult" />
      </sequence>
      </complexType>
      </element>
    - <complexType name="ArrayOf_xsd_string">
    - <sequence>
      <element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:string" />
      </sequence>
      </complexType>
    - <complexType name="ServiceResult">
    - <sequence>
      <element name="_errorMessage" nillable="true" type="xsd:string" />
      <element name="_resultList" nillable="true" type="impl:ArrayOf_xsd_string" />
      <element name="_successfull_processed" type="xsd:int" />
      </sequence>
      </complexType>
    - <element name="getVarListFromDWDocument">
    - <complexType>
    - <sequence>
      <element name="dwdocumentID" type="xsd:long" />
      </sequence>
      </complexType>
      </element>
    - <element name="getVarListFromDWDocumentResponse">
    - <complexType>
    - <sequence>
      <element name="getVarListFromDWDocumentReturn" type="impl:ServiceResult" />
      </sequence>
      </complexType>
      </element>
    I created a proxy to consume this service. When I test the proxy directly I get the correct result displayed as XML (the response). When I try to call the service over ABAP code (use the proxy in a report), I've the problem that the complex-type table is empty. The simple type value is correctly filled.
    Does anyone have an idea which could be the problem? I guess the mapping of the XML response in the DDIC-types isn't working correctly, but I've no idea why.
    Thanks in advance
    Cunanan1980

    Hi Srikanth,
    Check this regarding the web service in WDA.
    Ist Step : configure Logical Port
    http://help.sap.com/saphelp_nw70/helpdata/EN/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm
    2nd Step : Generate Proxy Object
    http://help.sap.com/saphelp_nw70/helpdata/EN/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm
    3rd Step : Instantiating the proxy object & calling the methods exposed by webservice
    data: sys_exception type ref to cx_ai_system_fault,
          sys_exception2 type ref to cx_ai_application_fault,
          client_proxy type ref to zco_myesa, "MY PROXY CLASS
          lv_ret_code type int4,
          lv_input type zsend_email_input,
          lv_response type zsend_email_response.
    data: lv_from type string,
          lv_from_address type string,
          lv_to type string,
          lv_to_address type string,
          lv_subject type string,
          lv_msg type string.
    lv_input-from = 'MYSAPTEST'.
    lv_input-from_address = '<someAddress>'.
    lv_input-to = 'Prashant'.
    lv_input-to_address = '<someAddress>'.
    lv_input-subject = ' TEST'.
    lv_input-msg_body = ' Hi this is wonderfull to see it work'.
    try.
    create object client_proxy
    exporting
    logical_port_name = 'BASIC'. " Basic is a TYPE G RFC Destination
    call method client_proxy->send_email
       exporting
         input  = lv_input
       importing
         output = lv_response    .
      catch cx_ai_system_fault  into sys_exception .
        data lv_err type string.
         lv_err = sys_exception->if_message~get_text( ).
         write: / lv_err.
      catch cx_ai_application_fault into sys_exception2  .
         lv_err = sys_exception->if_message~get_text( ).
         write: / lv_err.
    endtry.
    if lv_response is initial.
       write: /'Not Executed'.
    else.
       write: /'Did Execute'.
    endif.
    Regard
    Manoj Kumar

  • How can i empty the table in sub vi and get the same data main vi

    I using a sub vi in my program for many places,but when I run the program for second time i stil have the old information
    someone can help me to resolve this probleme whith a sample
    thank you.
    Attachments:
    Main_Pass.llb ‏30 KB

    Well, obviously you are reading the current content of the table with a property node, then append the new data, making the table in the subVI grow each time it is called. I made a quick modification (see attached).
    btw, I don't see the logic in your overall design. What is e.g. the purpose of the OK button in the subVI?
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Main_Pass.llb ‏28 KB

  • How to empty Fact tables ???

    Hi everybody,
    How to supress data in fact table(but without delete data in dimension tables) before data loading ?
    I use a process chain to load the data.
    I know that manualy it is easy to do that, but with an automatic process how to do that ?
    Thanks
    Christophe

    Hi,
    just want to share my idea,instead of deleting the data,you can suppress the data to save memory by a process called " compression"
    check this link for more input
    http://www.sap-img.com/business/infocube-compression.htm
    Part of process chain,use process type "Compression of the InfoCube "
    Regards,
    Swapna.G

  • Empty Internal table?

    Hi Guys,
                  I am having a problem while writing the code The code is below.
      SELECT *
             INTO TABLE lt_JEST
             FROM JEST
             FOR ALL ENTRIES IN lt_PROJ
             WHERE OBJNR EQ lt_PROJ-OBJNR.
           In the code above i want to keep a condition that if there is no data in PROJ internal table Then this Select Statement should not be executed.Can anybody tell me how to do it?
    Thanks,
    Gopi.

    Hi Gopi,
    try this out.
    IF NOT IT_PROJ[] IS INITIAL.
    SELECT * from JEST
             INTO TABLE IT_JEST
             FOR ALL ENTRIES IN IT_PROJ
             WHERE OBJNR = PROJ-OBJNR.
    <b>(CHECK IF U WANT TO COMPARE WITH PROJ OR IT_PROJ, IF U R CHECKING IN IT_PROJ, THEN IT_PROJ-OBJNR. (<i>I THINK IT SHOULD BE IT_PROJ-OBJNR</i>)</b>
    ELSE.
    ENDIF.
    REWARD POINTS IF USEFUL
    THANKS
    Sujay

  • Issue with INSERT INTO, throws primary key violation error even if the target table is empty

    Hi,
    I am running a simple
    INSERT INTO Table 1 (column 1, column 2, ....., column n)
    SELECT column 1, column 2, ....., column n FROM Table 2
    Table 1 and Table 2 have same definition(schema).
    Table 1 is empty and Table 2 has all the data. Column 1 is primary key and there is NO identity column.
    This statement still throws Primary key violation error. Am clueless about this? 
    How can this happen when the target table is totally empty? 
    Chintu

    Nope thats not true
    Either you're not inserting to the right table or in the background some other trigger code is getting fired which is inserting into some table which causes a PK violation. 
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Global temporary Table-Table becomes empty

    Hi,
    I have used global temp table on commit preserve rows.
    During initialization of the screen i'm creating temp tables and all the manipulation done on
    screen has been stored on temp table ,
    at the end of all the insert and delete operation i'm retrieving it from temp table and displaying
    it in the screen,at some point of time the temp table value is lost.So nothing is been displayed in
    screen.
    I tried to find out the problem according to me the session got expires coz of that the value in
    the temp table becomes empty and last value inserted is stored.
    can anyone help me out to solve this problem it will be great to get a help.

    What is your application architecture?
    Are you using session-pooling. If so that would explain it: very likely the request that finds the empty temp-table, is being serviced by a different database session, than the one that originally created the contents of the temp-table.
    Temp-tables are database-session specific: db-session X cannot see the contents of some temp table in db-session Y. db-session X has it's own copy of that temp-table.
    Toon

  • Empty Precalculated Value Set Tables?

    We've successfully implemented Pre-calculated Value Sets in BW 3.5 using Reporting Agent.
    Does anyone know how to get rid of, or empty pre-calculated value set tables that you no longer need?  There are some reporting agent settings that I have deleted from reporting agent but they continue to appear in the Pre-calc value set variable as an available option when running the query.  It's like the setting got deleted from reporting agent but the underlying table didn't?
    Perhaps this is an issue for OSS but I thought I'd see if maybe there is an option I'm not aware of.
    Thanks,
    Chris

    Thanks - I also found OSS note 825017 that seems to address the issue as well.  We'll see if we can apply this note so we can get the ABAP program to delete or empty these tables.  I think that will resolve the issue.
    Thanks,
    Chris

  • How to delete a row in table control?

    Hi All,
    I have a empty table control which is only use for data input(this data will then be use to store information to a custom table).  I have two buttons, Create Entry and Delete Entry.
    In my screenPainter for the table control, I have the checkbox w/SelColumn ticked and assign variable T_DATA-MARK on it.
    In my code:
    TOP Include
    CONTROLS: tc_data      TYPE TABLEVIEW USING SCREEN 9001.
    PBO
    PROCESS BEFORE OUTPUT.
      LOOP WITH CONTROL TC_ID.
        MODULE LOAD_TABLECTRL.
      ENDLOOP.
    module LOAD_TABLECTRL output.
      READ TABLE T_DATA INTO WA_DATA INDEX TC_DATA-current_line.
      IF SY-SUBRC EQ 0.
        MOVE-CORRESPONDING T_DATA TO WA_DATA.
      ENDIF.
    endmodule. 
    PAI
    PROCESS AFTER INPUT.
       LOOP WITH CONTROL TC_ID.
       ENDLOOP.
    MODULE GET_USER_ACTION.
    module GET_USER_ACTION input.
      WHEN 'DEL'.
        LOOP AT T_DATA INTO WA_DATA WHERE MARK EQ 'X'.
          DELETE T_DATA.
        ENDLOOP.
    In my debug, the internal table T_DATA-MARK does not have any value(s) even if I selected a particular row in my table control. 
    Am I missing something here?
    Thanks

    Hi All,
    Please see the actual screenshots and code below:
    The aim of the table control is just to accept inputs, so the internal table in the PBO is always empty.
    Table Control Screen Painter ScreenShot and Actual SAP Output: http://img710.imageshack.us/img710/4751/tablecontrolrowdelete.jpg
    PBO
    PROCESS BEFORE OUTPUT.
      LOOP WITH CONTROL TC_ID.
        MODULE LOAD_TABLECTRL.
      ENDLOOP.
    module LOAD_TABLECTRL output.
      READ TABLE T_ID_CHECK INTO WA_ID_CHECK INDEX TC_ID-current_line.
      IF SY-SUBRC EQ 0.
        MOVE-CORRESPONDING T_ID_CHECK TO TC_ID.
      ELSE.
          "EXIT FROM STEP-LOOP.
          CLEAR ZQID_CHECK.
      ENDIF.
    PAI
    PROCESS AFTER INPUT.
       LOOP WITH CONTROL TC_ID.
         CHAIN.
          MODULE CHECK_ENTRIES     ON CHAIN-INPUT.     
          MODULE MODIFY_T_ID_CHECK ON CHAIN-INPUT.
          MODULE DELETE_ROW        ON CHAIN-INPUT
         ENDCHAIN.
       ENDLOOP.
    module CHECK_ENTRIES input.
      CASE ok_code.
        WHEN 'DEL'.
            PERFORM F_FILL_ITABCREATE USING ZQID_CHECK-MATNR
                                            ZQID_CHECK-LICHA
                                            ZQID_CHECK-LIFNR.
      ENDCASE.
    endmodule.    
    module MODIFY_T_ID_CHECK input.
    DATA W_TEMPMARK(1) TYPE C.
      MOVE: T_ID_CHECK-MARK TO W_TEMPMARK,
            W_TEMPMARK TO T_ID_CHECK-MARK.
    MODIFY T_ID_CHECK INDEX SY-TABIX TRANSPORTING MARK.
    endmodule.
    module DELETE_ROW input.
      LOOP AT T_ID_CHECK WHERE MARK EQ 'X'.
        DELETE T_ID_CHECK.
      ENDLOOP.
    endmodule.   
    form F_FILL_ITABCREATE  using    us_zqid_check_matnr LIKE MARA-MATNR
                                     us_zqid_check_licha LIKE MCHA-LICHA
                                     us_zqid_check_lifnr LIKE LFA1-LIFNR.
      MOVE: us_zqid_check_matnr TO WA_ID_CHECK-MATNR,
            us_zqid_check_licha TO WA_ID_CHECK-LICHA,
            us_zqid_check_lifnr TO WA_ID_CHECK-LIFNR.
      APPEND WA_ID_CHECK TO T_ID_CHECK.
      CLEAR WA_ID_CHECK.
    endform.
    In my debug, I can now delete the internal table that has a 'X' mark on its respective row but on the SAP screen output, all of my entries are being deleted contrary to what the ABAP debugger is telling me.
    Thanks

  • How to develop Framework Extension for join two tables

    Dear developers,
    My project contains more than 200 maintenance tables.
    Maintenance tables are very small and less than 100 lines.
    Maintenance tables mostly associated with a translation table.
    Translation tables are used for localized texts.
    Translation tables consists of Master Table Key + LanguageKey.
    I want to edit customizing tables only session language as single table.
    Translation table row may or may not be. Thats mean relationship is 1 to 0..1.
    ADF table control ignore this relationship.
    I tried view link between master view and detail view objects, but if translation table line is empty ADF table control throws translation iterator is null exception.
    I tried entity based left joined editable view I get view link inconsisty problem.
    In this case, the BC forcing me to framework extension.
    How is develop solution?

    topic is update

  • How to delete a row in table control(accepts only input)?

    Hi All,
    I have an empty table control which is only use for data input(this data will then be use to store information to a custom table). I have two buttons, Create Entry and Delete Entry.
    In my screenPainter for the table control, I have the checkbox w/SelColumn ticked and assign variable T_DATA-MARK on it.
    Please see the actual screenshots and code below:
    The aim of the table control is just to accept inputs, so the internal table in the PBO is always empty.
    Table Control Screen Painter ScreenShot and Actual SAP Output:
    http://img710.imageshack.us/img710/4751/tablecontrolrowdelete.jpg
    PBO
    PROCESS BEFORE OUTPUT.
      LOOP WITH CONTROL TC_ID.
        MODULE LOAD_TABLECTRL.
      ENDLOOP.
    module LOAD_TABLECTRL output.
      READ TABLE T_ID_CHECK INTO WA_ID_CHECK INDEX TC_ID-current_line.
      IF SY-SUBRC EQ 0.
        MOVE-CORRESPONDING T_ID_CHECK TO TC_ID.
      ELSE.
          "EXIT FROM STEP-LOOP.
          CLEAR ZQID_CHECK.
      ENDIF.
    PAI
    PROCESS AFTER INPUT.
       LOOP WITH CONTROL TC_ID.
         CHAIN.
          MODULE CHECK_ENTRIES     ON CHAIN-INPUT.     
          MODULE MODIFY_T_ID_CHECK ON CHAIN-INPUT.
          MODULE DELETE_ROW        ON CHAIN-INPUT
         ENDCHAIN.
       ENDLOOP.
    module CHECK_ENTRIES input.
      CASE ok_code.
        WHEN 'DEL'.
            PERFORM F_FILL_ITABCREATE USING ZQID_CHECK-MATNR
                                            ZQID_CHECK-LICHA
                                            ZQID_CHECK-LIFNR.
      ENDCASE.
    endmodule.    
    form F_FILL_ITABCREATE  using    us_zqid_check_matnr LIKE MARA-MATNR
                                     us_zqid_check_licha LIKE MCHA-LICHA
                                     us_zqid_check_lifnr LIKE LFA1-LIFNR.
      MOVE: us_zqid_check_matnr TO WA_ID_CHECK-MATNR,
            us_zqid_check_licha TO WA_ID_CHECK-LICHA,
            us_zqid_check_lifnr TO WA_ID_CHECK-LIFNR.
      APPEND WA_ID_CHECK TO T_ID_CHECK.
      CLEAR WA_ID_CHECK.
    endform.
    module MODIFY_T_ID_CHECK input.
    DATA W_TEMPMARK(1) TYPE C.
      MOVE: T_ID_CHECK-MARK TO W_TEMPMARK,
            W_TEMPMARK TO T_ID_CHECK-MARK.
    MODIFY T_ID_CHECK INDEX SY-TABIX TRANSPORTING MARK.
    endmodule.
    module DELETE_ROW input.
      LOOP AT T_ID_CHECK WHERE MARK EQ 'X'.
        DELETE T_ID_CHECK.
      ENDLOOP.
    endmodule.   
    Edited by: Jaime Cabanban on Jan 7, 2010 8:46 PM

    Debugging the PBO part after deletion will help you know why the rows are getting deleted
    This is the sap doc answer for you question regarding LINE.
    Controls the scroll bar of the table control. At LOOP without internal table, LINES has the initial value zero and must be set in the program so that the scroll bar can be used. At LOOP AT <itab> the system sets this component to the number of rows of the internal table, whenever the table control is processed for the first time. The initialization event of a table control is not determined uniquely. If the corresponding internal table is not fully created at this event, then the LINES variable receives an incorrect value. If LINES in the LOOP loop is smaller as the number of rows of the internal table, then the table control contains blank rows at the end.
    Therefore you should always set the LINES component explicitly in the ABAP program, including at LOOP AT <itab>. In this way you have full control over the dimensions of the vertical scroll bar and so can control the number of rows that are ready for input. Initialization should usually occur at PBO directly before the LOOP statement for the table control.

  • How to create a dynamic table (repeating) with static header?

    Hello
    My purpose is to create a table which should be dynamically filled at runtime depending on the number of elements in the datasource($record.list). If the list is empty, the table shouldn't be displayed at all.
    I created a subform which holds a table, ticking "Repeat Subform for each data item" and I set the binding of the table elements to $record.list[*].myelement. This works fine so far.
    For the table header I created a second subform with a table having exactly the same size like the other table with text fields that contain the table header texts.
    My problem now is that I would like to control the display of the subform which serves as table header row depending on whether $record.list is empty or not.
    What's the best way to do this? How can I have access to the datasource for a form?
    Thank you very much for your help!!!
    Best regards
    Bettina Hepp

    Hi,
    Instead of creating the header row outside the table.
    Create it inside the same table as header row.
    So when you create a condition then automatically applicable for the header row also.
    This is the best option.
    Regards,
    sasi

Maybe you are looking for

  • Using MS Office with OS X 10.4.11?

    I want to use MS Office on my Intel iMac with OS X 10.4.11. I just need the basic use of Excel and Word, and I don't want to spend much money to get this stuff. What is my best option? Should I buy Office 2004 (which I believe is compatible with the

  • Menu Issue Mac OS 10.6.8

    I have a user in the Marketing department using a MacBook Pro running Mac OS 10.6.8. This morning without warning all of a sudden the menu behavior changed across the system. (IE: File, Edit, View, etc...) It is working like I remember the old Mac OS

  • Problem exporting as .mp4

    I am trying to create a video that is just audio with images over it. I recorded a company presentation on a Sony audio recorder, and then took each presenter's powerpoint slides saved as .jpg's and imported them and placed them over the audio. The o

  • System configuration issue

    Hi, I have one issue while using the system configurations . I have created the two data store configurations with two different databases . I have created two system configurations for two database configurations .  But while running the job it load

  • How to authenticate oracle application user from third party application -

    Hi All! I am using OC4J as a J2EE container with an Oracle Applications setup (11.5.10, LINUX version). This is for an application which gets called from Oracle Applications. We need the user, responsibility and session information of Oracle applicat