BTE for Parking a document and updating a custom table

Hi
I want to update a custom table whenever a new parking document got posted through FBV4. I want to use a BTE for this please advice....
Moderator message: please do some research before asking.
Edited by: Thomas Zloch on Mar 10, 2011 9:15 AM

Hi Gaurav,
First time the correct data i have entered..and pressed "Save" button it is going and updating .After that i given same priority to multiple absence types..it errored out.. till now everything is fine.. Again i changed to correct value.. and pressed "Save" button. It is error out with an error like :
JBO-25001: Name LOCATOR_SELECT3 of object type View Row Set Iterator already exists
Code :
int rowCount = vo.getFetchedRowCount();
RowSetIterator rIter1 = vo.createRowSetIterator("LOCATOR_SELECT3");
rIter1.setRangeStart(0);
rIter1.setRangeSize(rowCount);
int g=0;
rIter1.reset();
for ( int i=0;i<rowCount;i++)
XxchrResultSetVORowImpl row = (XxchrResultSetVORowImpl)rIter1.getRowAtRangeIndex(i);
String priority = ((String)row.getAbsencePriority());
System.out.println("First Priority" + priority);
for ( int j=0;j<rowCount;j++)
if(i==j)
g++;
//leave this row
else
XxchrResultSetVORowImpl rows = (XxchrResultSetVORowImpl)rIter1.getRowAtRangeIndex(j);
String priority2 = ((String)rows.getAbsencePriority());
//String priority2 = ((String)row[j].getAttribute("AbsencePriority"));
System.out.println("Second Priority" + priority2);
if(priority.equals(priority2))
//that means priority is repeated
throw new OAException("error",OAException.ERROR);
rIter1.closeRowSetIterator();
Serializable[] param = {Businessgroupname,Retroactivedays};
am.invokeMethod("Apply");
Thanks
Preeti

Similar Messages

  • Function Modules for Parking FI Documents

    Hi Experts,
    Which function modules are same as the T-Code F-65 for parking FI documents?
    You will be rewarded if your tips is helpful.
    Thanks and Regards
    Joe

    Hi Joe,
    Check this,
    https://forums.sdn.sap.com/click.jspa?searchID=5303620&messageID=806864
    Thanks,
    Reward If Helpful.

  • Multiple iphones each with an apple id - can i use the same laptop and itunes for back up, restore and updates?

    We have two iphones each with a different apple id - can i use the same laptop and itunes for back up, restore and updates without risking having my apps overwritten.  Basically does itunes keep the two iphones as two separate entities ?  Does iTunes differentiate between the two devices and keep two different SYNCs ?

    Yes, you can use the same computer for BACK UPS, RESTORING AND UPDATING. But that is it.
    You cannot, however, use it to sync the different devices. iTunes will only recognize one device to sync with and if you sync any other devices with that iTunes library, it will replace what is on the phone with whatever is in the library. It cannot differentiate between devices. At most, it will jsut recognize that the phone has been synced with a different iTunes library.
    So if you would like to use the same computer for backing up, restoring and updating, just make sure to turn of Automatic Syncing in your iTunes Preferences.

  • Separate document no. for SD revision document and detagging relationship between invoice and SD document no.

    HI,
    Country specific settings for India - Business transactions enables SD revision vide table TE872_SDCTRL_IND.
    Whenever SD revision takes place system issue similar document no. as that of invoice and tagged it with XBLNR as per standard process.
    Now issue that if that invoice is reversed, subsequent SD also gets reversed.
    So business requires to have separate document no. for SD revision document and detagged relationship between invoice and SD document no.
    I have explored event R507, 0010, 0060 and R436 but couldn't find input structure where such separate document can be assigned.
    So can you provide hint which can assist in issue resolution?
    Regards,
    Paresh

    Check this thread, if this helps.
    [url] Link between MKPF table and EKKO or RBKP table [url]
    I've done this as well earlier to create a custom document flow for archived documents where from the EBELN i've found all the related documents. Hope this helps.

  • Retrieve Multiple Serial Numbers for given Delivery Document and Item

    Hello Experts,
                          I am currently working on a 2Lis datasource to extract Delivery information.Now it is required to append the
    datasource with field (say ZZSERNO) which should extract ALL Serial Numbers from OBJK table for a given Delivery Item.
    I know that there is a link between table SER01 and OBJK to retrieve the same.However, my concern is- C_T_Data table is
    already providing the Delivery Information and along with that I want to display ALL Serial numbers for a given Delivery Item.
    A delivery Item can have more that one serial number linked to it as what I see in VL03N for a Delivery document.
    So currently in RSA3, I retrieve say 1 record for a given Delivery Document and Item .Now an Item has say 10 Serial Numbers
    associated with it, so i should see 10 Records for that Delivery Document and Item, after executing RSA3.
    Please provide me with the CMOD logic to do so.

    Hi,
    You can Link LIPS and OBJK tables with Delivery and Del Item.........refer below for the code.
    1) Declare an Internal table of type OBJK with fields DEL DOC, DEL ITEM and ZZSERNO .
    2) Declare another Internal Table ITAB_LIPS of type LIPS with required fields say in your case *DEL DOC, DEL ITEM and ZZSERNO....etc.
    3) Use below select statement to extract records from LIPS into ITAB_LIPS that you have declared for to fetch LIPS data.
    Select DEL DOC, DEL ITEM ( here i have included only few fields but as per requirement please add fields here)   from
    LIPS into corresponding fields of Table ITAB_LIPS.
    4) write one more select statement to fetch Serial number data.
    Select DEL DOC, DEL ITEM ZZSERNO  from OBJK into corresponding fields of TABLE ITAB_OBJK for all entries in ITAB_LIPS
    where DEL DOC = ITAB_LIPS-DEL DOC and
                DEL ITEM = ITAB_LIPS-DEL ITEM.
    Loop at ITAB_OBJK.
    Read table ITAB_OBJK into ITAB_LIPS with keys DEL DOC    DEL ITEM.
    ITAB_LIPS-DEL DOC = ITAB_LIPS-DEL DOC
    ITAB_LIPS-DEL ITEM = ITAB_OBJK-DEL ITEM.
    IF SY-SUBRC = 0.
    ITAB_LIPS-ZZSERNO = ITAB_OBJK-ZZSERNO.
    ENDIF
    ENDLOOP.
    Hope the above code helps
    Sujan

  • BAPI For Parking FI Document

    Dear All
    Is there any BAPI or Function Module available for parking the document in FI.
    regards
    Amit Hiremath

    Hi Armit,
    have a look to this thread:
    Re: BAPI for Parking non-PO Invoices?
    regards Andreas

  • FM/BAPI for Parking a document ( FBV1 )

    Hi Experts,
    We have a requirement where we need to POST a document & then Park It.
    We are able to post a document using "BAPI_ACC_DOCUMENT_POST ".
    But we are unable to find a FM/BAPI for Parking a document.
    We cannot use BDC as the document type is not fixed. The transaction has different screens for each document type.
    Any pointers to FM/BAPI or any other alternative solution to Park a document.
    Thanks,
    Best regards,
    Prashant

    Hi Prashant,
       Refer the below link it will help u.
    https://forums.sdn.sap.com/click.jspa?searchID=11002520&messageID=3632073
    https://forums.sdn.sap.com/click.jspa?searchID=11002520&messageID=3475534
    Regards
    Kiran Sure

  • What is the best program for editing pdf documents and filling in forms

    Whats the best program to use for editing pdf documents and filling in pdf forms?

    Acrobat Pro XI  creative suite 6
    or the newer Acrobat Pro creative cloud
    Been using it now for endless years.

  • Transaction code for viewing invoice document and Claims document

    Hi Experts,
    Can u please tell me the transaction codes for viewing invoice document and claims document in ECC.
    I am in CRM and i do not know about the ECC transaction codes.
    request you 2 help.
    Thanks and Regards
    Shilpi

    hi,
    MM flow:
    purchase Requestion (ME51)
    Request for Quatation (ME41)
    Quatation from different vendors (ME47)
    price comparision (ME49)
    purchase order send to vendors (ME22)
    goods reciepts (MIGO)
    logistic invoice verification (MIRO)
    SD flow:
    Enquirey (VA11)
    Quatation (VA21)
    sales order processing (VA01)
    delivery (VL01)
    billing (VF01)
    Also follow this link.
    The specified item was not found.
    i hope this will help you out
    -Thanks & regards
    Saurabh Goel

  • Insert,  Delete and Update options in Table control

    Experts,
    I have writen code for Insert,  Delete and Update options in Table control. They are not working properly...
    can any one send the code for the above please...
    Thanks in advance..

    Hi,
    Following steps will help you.
    1.TOP-INCLUDE
    DATA: ITAB1 LIKE KNA1 OCCURS 0 WITH HEADER LINE.
    DATA: ITAB2 LIKE KNA1 OCCURS 0 WITH HEADER LINE.
    DATA: WA LIKE KNA1.
    DATA: ANT TYPE I,CUR TYPE I.
    DATA: OK_CODE TYPE SY-UCOMM.
    CONTROLS: TABCTRL TYPE TABLEVIEW USING SCREEN 100.
    IN FLOWLOGIC
    PROCESS BEFORE OUTPUT.
    LOOP AT ITAB1 CURSOR CUR WITH CONTROL TABCTRL.
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE CLEAR_DATA.
    LOOP AT ITAB1.
    MODULE MOVE_DATA.
    ENDLOOP.
    ADD “OK_CODE” IN ELEMENT LIST. CLICK ON LAYOUT AND  ADD TABLE CONTROL(name it as TABCTRL) AND PUSHBUTTONS AS FOLLOWS.
    SELECT THE FIELDS FROM PROGRAM. SAVE CHECK AND ACTIVATE.
    CLICK ON FLOWLOGIC EDITOR FROM APPLICATION TOOL BAR.
    DOUBLE CLICK ON MODULE “CLEAR_DATA”.
    write the in this module as below.
    CLEAR ITAB2. REFRESH ITAB2.
    DOUBLE CLICK ON MODULE “MOVE_DATA”.
    write the code in this module as below.
    APPEND ITAB1 TO ITAB2.
    ACTIVATE PAI AND WRITE THE CODE AS BELOW.
    CASE OK_CODE.
    WHEN 'FETCH'.
    SELECT * FROM KNA1 INTO TABLE ITAB1 UP TO 20 ROWS.
    TABCTRL-LINES = SY-DBCNT.
    WHEN 'ADD'.
    GET CURSOR LINE CNT.
    CNT = TABCTRL-TOP_LINE + CNT - 1.
    CLEAR WA.
    INSERT WA INTO ITAB1 INDEX CNT.
    WHEN 'MODIFY'.
    GET CURSOR LINE CNT.
    READ TABLE ITAB2 INDEX CNT.
    LOOP AT ITAB2.
    MODIFY KNA1 FROM ITAB2.
    ENDLOOP.
    SELECT * FROM KNA1 INTO TABLE ITAB1.
    WHEN 'EXIT'.
    LEAVE PROGRAM.
    ENDCASE.
    SAVE,CHECK AND ACTIVATE ALL.
    CREATE TCODE AND EXECUTE.
    contact if u hv any issues regarding this code.
    reward points,if it is useful.
    Thanks,
    Chandu.

  • Parked MM invoice and multiple account assignments (table RBCO) ?

    Hi.
    Could someone please explain how the table RBCO works for parked MM invoice and multiple account assignments.
    What I have observed in this table are:
    1. Every position (table RSEG)  in the invoice can have several lines (table RBCO) with account assignment.
    2, If there is only one record for a position, the key in the table RBCO starts with 0002, field RBCO-COBL_NR (???)
    3. IF I add one more line to the psoition, the first line CHANGES the key in table RBCO from 0002 to 0001 and the second line gets RBCO-COBL_NR = 0002
    4. The third line gets 0003.
    5. If i delete line 1-2, the remaining one line gets a new key feild RBCO-COBL_NR = 0002.
    The reason for understanding how this works is that i need to make a Z-table storing the history of changes done to records in table RBCO (..don’t ask why...)
    Lest say, I make a change for in an invoice for one of the positions, how do I compare the values in the itab, YDRSEG[]-CO[]- with the lines in table RBCO ?
    And whats the logic for the key in table RBCO?
    Please advice, Tom

    -

  • Purchase document and service order relation table

    Hi All,
    I am trying to enhance one datasource is there any relation we have for the purchase document and the service order?
    Could you please let  me know
    Thanks
    Srini

    EKPO and ESSR is the relation betqwwen the Purchase order and the service entry/orders.
    Regards
    Srini

  • Create transaction for update a custom table

    Hi,
    I have a custom table Z****. What are all the steps to create a transaction for updating my custom table? I don't want to use SM30 anymore.
    Thank you.

    Create a Table maintainence through the maintainence generator.
    Open table in SE11, goto utilities => table maintainence generator.
    Once the generator is created,
    In the same screen of generator - Goto Environment => Transaction Code
    Select Transaction Code with Parameter.
    In the default values - Enter the Transaction as SM30 . Select skip first screen.
    In default values at the bottom
    Add
    screen field = VIEWNAME and value = Ztable name.
    screen field =UPDATE  and value = 'X'.
    Edited by: Pranu Pranu on May 19, 2010 2:36 PM

  • How can I update a customized table from a text document?

    Hi,
    I am one sample file. The file is an text document. From this .txt file how can I update a customized table in SAP.
    How can I Update the fields in the Customized table.
    Thanks & Regards,
    NManohar.

    use the Function module GUI_UPLOAD or WS_UPLOAD and give the path and the file name from where the data has to be uploaded. in table parameter give the iternal table
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      =
      FILETYPE                      = 'ASC'
      HAS_FIELD_SEPARATOR           = ' '
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            =
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      tables
        data_tab                      =
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      NO_AUTHORITY                  = 6
      UNKNOWN_ERROR                 = 7
      BAD_DATA_FORMAT               = 8
      HEADER_NOT_ALLOWED            = 9
      SEPARATOR_NOT_ALLOWED         = 10
      HEADER_TOO_LONG               = 11
      UNKNOWN_DP_ERROR              = 12
      ACCESS_DENIED                 = 13
      DP_OUT_OF_MEMORY              = 14
      DISK_FULL                     = 15
      DP_TIMEOUT                    = 16
      OTHERS                        = 17
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    and finally use insert command to update the database table with the data

  • "DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB" while updating the custom table

    hi friends...
    i am posting fico document using bapi BAPI_ACC_GL_POSTING_POST.
    after that i am updating the document number to my custom table.
    but in some cases while updating the document in my custom table i am getting the fallowing dump..
    in ST22
    How to correct the error:
    Database error text........: "[1205] Transaction (Process ID 66) was deadlocked
    on lock resources with another process and has been chosen as the deadlock
    victim. Rerun the transaction."
    Internal call code.........: "[RSQL/UPDT/ZIF004_PKT ]"
    Please check the entries in the system log (Transaction SM21).
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB"
    "ZFI_01_MONTHLY_RESULT_FRM_PKT" or "ZFI_01_MONTHLY_RESULT_FRM_PKT"
    "UPLOAD_SAP"
    Source Code Extract
    LOOP AT i_zif004_pkt_sum .
    UPDATE zif004_pkt SET xblnr = i_zif004_pkt_sum-xblnr ---> i am getting DUMP here
                              gjahr = i_zif004_pkt_sum-gjahr
                              sap_flag_posting = i_zif004_pkt_sum-sap_flag_posting
                          WHERE compcode = i_zif004_pkt_sum-compcode
                         AND ccode = i_zif004_pkt_sum-ccode
                          AND wbselement = i_zif004_pkt_sum-wbselement
                          AND kostl = i_zif004_pkt_sum-kostl
                          AND code = i_zif004_pkt_sum-code
                          AND month1 = l_ltx
                          AND year1 = p_year.
        IF sy-subrc = 0.
          WRITE :/ 'Document ', i_zif004_pkt_sum-xblnr, 'is posted for ', i_zif004_pkt_sum-code.
        ENDIF.
      ENDLOOP.
    kindly give some inputs..
    regards
    Selva

    Hi,
    You will face this issue if your oracle data base is lack of work processes. try to check the work processes and increase them if possible with the helps basis guys.
    check the below thread.
    DI job failed ORA-12537: TNS:connection closed.
    Regards,
    Venkatesh

Maybe you are looking for

  • Receiver Business System Connot find Inbound Interface - IDoc to File

    Hi Everyone, I am doing IDoc to File Scenario.....Idoc got triggered from SAP system and successfully posted to SAP PI. Now when I check in T-Code IDX5 in PI, I got one message. When I double click that I am getting following error:   <SAP:Category>X

  • FCP Project Files are Listed as Documents.

    Hey everyone, I did a long render last overnight on my MacBook Pro (2007 Generation) and then brought the files to a school computer (MacPro OS 10.6.4) and now the FCP project files are simply 'documents' and cannot be opened with FCP. Am I doomed?

  • How to get ME23 screen using selection-screen

    Hi, I am trying to get the ME23 screen using selection-screen with following code. select-options: purordno for ekko-ebeln NO intervals. SUBMIT SAPMM06E VIA SELECTION-SCREEN . But at the time of execution i got this error "INCORRECT PROGRAM TYPE WITH

  • BPM Suite Sizing + UCM

    Dear guru, I would like to know about BPM Sizing. This below is hardware info. Any information are welcome. Hardware Specification: Xeon 2 CPUs, Quad Core, Memory 32 GB: Install Software BPM Suite + UCM + Web Logic in the same server. Please let's me

  • MRP Scheduling with a material with multiple production versions scrap rate

    Greetings all. I have a problem with MRP scheduling.  How do you account for different loss rates or scrap rates on a material because of multiple versions of a material that are in production.  For example, we have an item.  There are two differen w