How to code this?

Hi All,
Our application development will need to come up with a solution to update table B and tables C whenever a value in table A is changed to a certain value. Since I am new to Oracle stored procedures, I would like get some help on this. Can someone advice as to how to code the following? I greatly appreciate your ideas. Thanks!
Scenario:
Whenever the value on the column DCMTN_RCPT_STUS_CD is changed to "C" for table supplier_documentation (Table A), the value on the column BID_STUS_CD for table dmepos_bid will need to be updated to "01" (Table B), at the same time the column on BID_STUS_CD for supplier_application (Table C) will also
need to be updated to "01".
Table A:
SQL> select SUPLR_ID, BIDDER_NUM, NSC_NUM, DCMTN_RCPT_STUS_CD from
supplier_documentation where DCMTN_RCPT_STUS_CD='C';
BIDDER_NUM DCMTN_RCPT_STUS_CD
1000000 C
1000003 C
Table B:
SQL>select BIDDER_NUM, BID_STUS_CD from dmepos_bid order by bidder_num;
BIDDER_NUM BID_STUS_C
1000000
1000003
Table C:
SQL> select BIDDER_NUM, APLCTN_STUS_CD from supplier_application;
BIDDER_NUM APLCTN_STUS_CD
1000000
1000003

See Oracle row-level triggers:
http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96590/adg13trg.htm#376
SQL> create or replace trigger tr_01
  2  after update of DCMTN_RCPT_STUS_CD on supplier_documentation
  3  for each row
  4  when (new.DCMTN_RCPT_STUS_CD = 'C')
  5  begin
  6   update dmepos_bid set BID_STUS_C = :new.DCMTN_RCPT_STUS_CD
  7   where BIDDER_NUM = :new.BIDDER_NUM;
  8   update supplier_application set BID_STUS_C = :new.DCMTN_RCPT_STUS_CD
  9   where BIDDER_NUM = :new.BIDDER_NUM;
10  end;
11  /
Trigger created.
SQL> select * from supplier_documentation;
BIDDER_NUM DC
   1000000
   1000003
SQL> select * from dmepos_bid;
BIDDER_NUM BI
   1000000
   1000003
SQL> select * from supplier_application;
BIDDER_NUM BI
   1000000
   1000003
SQL> update supplier_documentation set DCMTN_RCPT_STUS_CD = 'B'
  2  where BIDDER_NUM = 1000000;
1 row updated.
SQL> select * from supplier_documentation;
BIDDER_NUM DC
   1000000 B
   1000003
SQL> select * from dmepos_bid;
BIDDER_NUM BI
   1000000
   1000003
SQL> select * from supplier_application;
BIDDER_NUM BI
   1000000
   1000003
SQL> update supplier_documentation set DCMTN_RCPT_STUS_CD = 'C'
  2  where BIDDER_NUM = 1000000;
1 row updated.
SQL> select * from supplier_documentation;
BIDDER_NUM DC
   1000000 C
   1000003
SQL> select * from dmepos_bid;
BIDDER_NUM BI
   1000000 C
   1000003
SQL> select * from supplier_application;
BIDDER_NUM BI
   1000000 C
   1000003Rgds.

Similar Messages

  • How to code this one?

    Please try to code the following:
    1. If payment end date (PA0014-ENDDA ) = '12.13.9999' (Delimited) AND 1st Payment date (PA0014-ZDATE) < Sept.01 of the current fiscal year.
    2. ELSEIf payment end date (PA0014-ENDDA ) = '12.13.9999' (Delimited) AND 1st Payment date (PA0014-ZDATE) > Aug 31 of the current fiscal year.
    3. ELSEIf payment end date (PA0014-ENDDA ) <> '12.13.9999' (Delimited) AND 1st Payment date (PA0014-ZDATE) > Aug31.
    4. ELSEIf payment end date (PA0014-ENDDA ) <> '12.13.9999' (Delimited) AND 1st Payment date (PA0014-ZDATE) < Sept.01 of the current fiscal year.
    5. ELSE.
       EXIT.
      ENDIF.
    NOTE: I have a problem on how you can determine if that particular date lies on that particular fiscal year or not. Please help me code this one.
    II. This are conditions between of each code.
    PAYMENT DATE is a variable should be used to store each successive payments.
    For Scenario 1, set (PAYMENT DATE ) = 1st payment date occuring after Aug 31 (Fiscal YEar)
    For Scenario 2, set (PAYMENT DATE ) = 1st payment date (SCREEN field: P0014-ZDATE)
    For Scenario 3, set (PAYMENT DATE ) = 1st payment date (SCREEN field: P0014-ZDATE)
    For Scenario 4, set (PAYMENT DATE ) = 1st payment date occuring after Aug 31 (Fiscal YEar)
    IF  the [Payment date] is <= to the infotype 0014 record end date (PA0014-ENDDA), do
    If the [Payment date] is in between the start and end date of the current Fiscal year
         If the unit (PA0014-ZEINH) is “Days”,
               [Payment date] = [Payment date] + (# of days)
               Add recurring payment (PA0014-BETRG) to total compensation counter
               Endif
         If the unit (PA0014-ZEINH) is “Weeks”, then {
                  [Payment date] = [Payment date] + (# of weeks)
               Add recurring payment (PA0014-BETRG) to total compensationcounter
         Endif
         If the unit (PA0014-ZEINH) is “Months”, then {
                  [Payment date] = [Payment date] + (# of months)
                Add recurring payment (PA0014-BETRG) to total compensation counter
         Endif
         If the unit (PA0014-ZEINH) is “Years”, then {
                   [Payment date] = [Payment date] + (# of years)
                Add recurring payment (PA0014-BETRG) to total compensation counter
         Endif  
    Endif
    Endif
    Repeat for next payment
    Repeat for the next infotype 0014 record (if it exists)
    I really need help! So guys whos expert in SAP. Thanx in Advance.

    >
    Dave Packard wrote:
    > Good day, everyone!
    > I would like to join the tables FMIFIIT and AUFK.  The INNER JOIN will be done between FMIFIIT's MEASURE (Funded Program) field, which is char(24), and AUFK's AUFNR (Order Number) field, which is char(12).
    >
    > The problem I'm having is this:  All of the values in AUFNR are preceeded by two zeros.  For example, if I have a MEASURE value of '5200000017', the corresponding value in AUFNR is '005200000017'.  Because I have my SQL statement coded to just match the two fields, I obviously get no records returned because, I assume, of those leading zeros.
    > Dave
    You can't do a join like this in SAP's open SQL.  You could do it in real SQL ie EXEC.... ENDEXEC by using SUSBTR to strip off the leading zeros from AUFNR but this would not be a good idea because a)  modifying a column in the WHERE clause will stop any index on that column being used and b) using real SQL rather than open SQL is really not something that should be encouraged for database portability reasons etc. 
    Forget about a database join and do it in two stages; get your AUFK data into an itab, strip off the leading zeros, and then use FAE to get the FMIFIIT data (or do it the other way round). 
    I do hope you've got an index on your FMIFIIT MEASURE field (we don't have one here); otherwise your SELECT could be slow if the table holds a lot of data.

  • How to code this - Please advise

    Dear friends,
         Please advise as how to code the below scenario in order to obtain the best performance.
    I've an internal table IT_BSAD.Now I've to check if in the combination of bukrs,augbl,auggj,kostl,prctr,gsber,aufnr, if there is a single record in IT_BSAD, then it should be appended to IT_BSAD1 & if there are multiple records, then those should be appended to IT_BSAD2. In any case IT_BSAD1 & IT_BSAD2 should not contain duplicate records & records in IT_BSAD = records in IT_BSAD1 + Records in IT_BSAD2. I coded it somehow but it hangs in case of million of records. Please advise me the best way of doing it.
    I'll appreciate any help in this regard.
    Thanks:
    Gaurav

    prepare a sorted table with key bukrs,augbl,auggj,kostl,prctr,gsber,aufnr
    loop it_basd assigning <fs_basd> .
    at new sufnr.
    lv_index = 0.
    endat.
    " move the fields to it_basd1 work area
    "append it_basd1
    lv_index = lv_index + 1.
    if lv_index > 1.
    if lv_index = 2.
    read it_basd1 into iwa_basd2 with key  bukrs,augbl,auggj,kostl,prctr,gsber,aufnr.
    append iwa_bsad2 into it_bsad2.
    delete from  it_basd1 where  bukrs,augbl,auggj,kostl,prctr,gsber,aufnr.
    endif.
    " move the fields of <fs_basd> to it_basd2 work area
    append iwa_bsad2 into it_bsad2.
    endif.
    endloop.
    hope this will help
    Nafran

  • Need help on how to code this SQL statement! (one key has leading zeros)

    Good day, everyone!
    First of all, I apologize if this isn't the best forum.  I thought of putting it in the SAP Oracle database forum, but the messages there seemed to be geared outside of ABAP SELECTs and programming.  Here's my question:
    I would like to join the tables FMIFIIT and AUFK.  The INNER JOIN will be done between FMIFIIT's MEASURE (Funded Program) field, which is char(24), and AUFK's AUFNR (Order Number) field, which is char(12).
    The problem I'm having is this:  All of the values in AUFNR are preceeded by two zeros.  For example, if I have a MEASURE value of '5200000017', the corresponding value in AUFNR is '005200000017'.  Because I have my SQL statement coded to just match the two fields, I obviously get no records returned because, I assume, of those leading zeros.
    Unfortunately, I don't have a lot of experience coding SQL, so I'm not sure how to resolve this.
    Please help!  As always, I will award points to ALL helpful responses!
    Thanks!!
    Dave

    >
    Dave Packard wrote:
    > Good day, everyone!
    > I would like to join the tables FMIFIIT and AUFK.  The INNER JOIN will be done between FMIFIIT's MEASURE (Funded Program) field, which is char(24), and AUFK's AUFNR (Order Number) field, which is char(12).
    >
    > The problem I'm having is this:  All of the values in AUFNR are preceeded by two zeros.  For example, if I have a MEASURE value of '5200000017', the corresponding value in AUFNR is '005200000017'.  Because I have my SQL statement coded to just match the two fields, I obviously get no records returned because, I assume, of those leading zeros.
    > Dave
    You can't do a join like this in SAP's open SQL.  You could do it in real SQL ie EXEC.... ENDEXEC by using SUSBTR to strip off the leading zeros from AUFNR but this would not be a good idea because a)  modifying a column in the WHERE clause will stop any index on that column being used and b) using real SQL rather than open SQL is really not something that should be encouraged for database portability reasons etc. 
    Forget about a database join and do it in two stages; get your AUFK data into an itab, strip off the leading zeros, and then use FAE to get the FMIFIIT data (or do it the other way round). 
    I do hope you've got an index on your FMIFIIT MEASURE field (we don't have one here); otherwise your SELECT could be slow if the table holds a lot of data.

  • How to Code this Query

    Hello, I'm using Access and need to code this query on SQL and I have this problem:
    I have 3 tables: Movie, Actor, Acts_In
    Movie table has fields: Movie_ID, movie_name, actor_1, actor_2, director
    Actor table has fields: Actor_ID, first_name, last_name
    Acts_IN table has fields: Movie_ID, Actor_ID
    * actor_id and movie_id are primary keys
    I have to create a query that allows me to search for a director, giving me a list of actors that have worked with that director, and all the movies they have acted in.
    so far I have come up with this code, however:
    select actor.first_name, actor.last_name, movie_name
    from (actor inner join acts_in ON acts_in.actor_ID=actor.actor_id) inner JOIN movie
    ON acts_in.movie_ID=movie.movie_id
    group by actor.first_name, actor.last_name, movie_name;
    This code gives me a list of all actors and all movies they acted in, but it does not give me specific actors in respect to a specific director, adding
    where director="XYZ"
    does not work as it gives me all actors that have worked with director XYZ but not all movies they have acted in. 
    Thanks!

    Grump. You should have provided us example data and DML, like this:
    DECLARE @movies TABLE (movie_ID INT, movie_Name VARCHAR(50), director VARCHAR(75))
    DECLARE @actors TABLE (actor_ID INT, first_name VARCHAR(50), last_name VARCHAR(50))
    DECLARE @acts_in TABLE (movie_ID INT, actor_ID INT)
    INSERT INTO @movies (movie_ID, movie_Name, director) VALUES
    (1, 'Batman Returns', 'Tim Burton'),
    (2, 'Charlie and the Chocolate Factory', 'Tim Burton'),
    (3, 'Sweeney Todd', 'Tim Burton'),
    (4, 'Alice in Wonderland', 'Tim Burton'),
    (5, 'Edward Scissor Hands', 'Tim Burton'),
    (6, 'From Hell', 'Albert Huges')
    INSERT INTO @actors (actor_ID, first_name, last_name) VALUES
    (1, 'Danny', 'DeVito'),
    (2, 'Freddie', 'Highmore'),
    (3, 'Helena', 'Bonham-Carter'),
    (4, 'Johnny', 'Depp'),
    (5, 'Mia', 'Wasikowska'),
    (6, 'Micheal', 'Keaton'),
    (7, 'Winona', 'Ryder')
    INSERT INTO @acts_in (movie_id, actor_ID) VALUES
    (1, 1),(1, 6),
    (2, 2),(2, 4),
    (3, 3),(3, 4),
    (4, 4),(4, 5),
    (5, 4),(5, 7),
    (6, 4)
    Which would have allowed us to come up with this:
    SELECT m2.director, a.first_name, a.last_name, m2.movie_Name
    FROM ((((@movies m
    INNER JOIN @acts_in ai
    ON m.movie_ID = ai.movie_ID)
    INNER JOIN @actors a
    ON ai.actor_ID = a.actor_ID)
    INNER JOIN @acts_in ai2
    ON a.actor_ID = ai2.actor_ID)
    INNER JOIN @movies m2
    ON ai2.movie_ID = m2.movie_ID)
    WHERE m.director = 'Tim Burton'
    GROUP BY m2.director, a.first_name, a.last_name, m2.movie_Name
    IIRC the primary difference between TSQL and the "Access SQL" is the freakin parens. So that *should* run in access, which you appear to be using.
    Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.

  • How to code this logic?

    I have an internal table with two fields FLD1 & FLD2(flag). I have to make sure that for same FLD1, there has to be only one FLD2 flag:
        FLD1           FLD2
           A            X
           A           
           B            X
           B            X
           B
    For example in the above example, 'B' has two 'X' therefore, I have to give an error message saying " Maintain only one 'X' value for  B"
    How do I do this?
    Thanks
    Sg

    try the code given below. It may help to code occording to ur desired logic.
    DATA: BEGIN OF it  OCCURS 10,
          fld1 TYPE c,
          fld2 TYPE c,
          END OF it.
    PARAMETERS: pfld1 type c .
                pfld2 type  c.
    data temp type i.
    start-of-SELECTION.
    loop at it.
      if it-fld1 = pfld1 and it-fld2 = pfld2.
      temp = 1.
       STOP.
      endif.
       ENDLOOP.
    end-of-SELECTION.
    if temp = 0.
    it-fld1 = pfld1. it-fld2 = pfld2.
    append it.
    write: / 'data append'.
    sort it by fld1.
    loop at it.
    write: / it-fld1, it-fld2.
    ENDLOOP.
    else.
    WRITE / 'Maintain only one',pfld2, 'value for',pfld1.
    it-fld1 = pfld1. it-fld2 = ''.
    APPEND it.
    sort it by fld1.
    loop at it.
    write: / it-fld1, it-fld2.
    ENDLOOP.
    endif.
    regards
    Vijaykumar Reddy. S

  • How to code this...please help

    Hi Friends:
       Please help me in coding the following scenario:
       I've the following checkboxes on selection screen:
    1. inventory quantity current period-unrestricted (mard-labst)
    2. inventory quantity current period-restricted use stock (mard-einme)
    3. inventory quantity current period-in quality inspection(mard-insme)
    4. inventory quantity current period - blocked (mard-speme)
    5. inventory quantity current period - returns (mard-retme)
    6. inventory quantity current period- stock in transfer (mard-umlme)
    now the scenario is like this. The user may check 1/2/3/4/5/6 checkboxes while executing this program. Now what all checkboxes are checked, only those values to be fetched from MARD. E.g. 1 & 2 are checked. Then I'll fetch labst & einme from MARD. Then I'll add it up. Please help me in coidng this. How to decide it at runtime.
    Thanks:

    Hi use this logic.
    if c1 = 'X.
    select single labst from mard into corrseponding table it_mard where..
    endif
    if c2 = 'X.
    select single einme from mard into corrseponding table it_mard where..
    endif.
    if c3 = 'X.
    select single insmefrom mard into corrseponding table it_mard where..
    endif.
    if c4 = 'X.
    select single spemefrom mard into corrseponding table it_mard where..endif.
    endif
    if c5 = 'X.
    select single retme from mard into corrseponding table it_mard where..
    endif.
    if c6 = 'X.
    select single umlme from mard into corrseponding table it_mard where..endif.
    endif
    Regards,
    Prasad.

  • How to code this : LE_SHIPMENT_BADI : method : At_Save

    Hi Friends:
    I'm working on LE_SHIPMENT_BADI. In the method At_Save, I've written the following code:
    METHOD if_ex_badi_le_shipment~at_save.
    This is just an additional check to ensure the following requirement:
    If the ship-to-party begins with XX, then Shipment type should be 'ZSTO'.
    If the ship-to-party doesn't begins with XX, then Shipment type should be '0001'.
      CONSTANTS : c_zsto  TYPE vttkvb-shtyp VALUE 'ZSTO',  "Constant for shipment type ZSTO
                  c_0001  TYPE vttkvb-shtyp VALUE '0001',  "Constant for shipment type 0001
                  c_xx(2) TYPE c            VALUE 'XX'.    "Constant for the first 2 characters of Ship-to-party
      DATA : v_kunwe TYPE vtrlk-kunwe,
             v_shp   TYPE vttkvb-shtyp,
             v_vttk  TYPE vttkvb.
      FIELD-SYMBOLS : <fs>    TYPE vtrlk.
    This provision is made if the internal table CHA_SHIPMENTS_AT_SAVE
    is initial, which is generally not the case. If such case is observed
    the the below mentioned code can be used.
    *if CHA_SHIPMENTS_AT_SAVE is initial.
    *CHA_SHIPMENTS_AT_SAVE = IM_shipments_AT_SAVE.
    *endif.
      READ TABLE cha_shipments_at_save-new_vtrlk ASSIGNING <fs> WITH KEY kunwe+0(2) = c_xx.
      IF sy-subrc = 0.
        v_shp = c_zsto.
      ELSE.
        v_shp = c_0001.
      ENDIF.
      v_vttk-shtyp = v_shp.
      MODIFY cha_shipments_at_save-new_vttk
             FROM v_vttk TRANSPORTING shtyp
             WHERE shtyp <> v_shp.
    ENDMETHOD
    Now I have to put one more check in it. There is a field LFART in table VTRLK . I want the above coding to work only when LFART = LF, ZLF, LR and ZLR. Please help me in implementing this.
    Suitable points will be Rewarded.
    Regards:

    Hello,
    If you have the values for LFART then simply check loke:
    CHECK ( lfart = 'XX'  or lfart = 'YY').
    and here check for the other condition,
    Regards,
    Sandeep

  • How to code this with serial communication?

    Here's What I Want To Do.
    There are two computers A and B. I send some variational data, 1.2,3.4 for example, from A to B once per second. If B has received the right data, he will send "Yes" to A, otherwise he will say "No". If received "Yes", A will get ready for the next data-sending. If "No", A will send the data again.
    The examples with LabVIEW for VISA communication are all like that one computer is listening and the other one is writing all the time. So can you help me with two simple VIs for computer A and B?
    Regards.

    You need to connect the two computers' serial ports with a Null Modem Cable (Tx/Rx, CTS/RTS, DTR/DCD reversed). The put the attached vi on computer A. It will send a command from an array, and wait for a response from computer B. If the response is Yes, then the next command will be sent. If not Yes then A will send the same command again and wait for a response. There is an Abort button if you want to abort, but it will only abort the current command. You can modify it to abort the whole thing by using a while loop to replace the for loop, and using the abort button to exit the while loop. I'll leave the coding up to you. You will have to write a vi to reside on B. I'll describe it but you can code it, good practice. Computer B should start off initializing the com port, like in the attached vi. Then loop at Bytes at Port until some bytes come in, then read the bytes. Use a comparison (equal) to check if the data is good. Use a case structure to define what to send back to computer A (Yes or No). Then write it back using Visa Write. Loop around the entire thing except for the com port init. Close the Visa after the main loop.
    - tbob
    Inventor of the WORM Global
    Attachments:
    COM_AtoB.vi ‏50 KB

  • How to code this using FIELD SYMBOL ?

    Hello All,
    I never used field symbols before and I think this is where I should use field symbols in my program.
    I have a selection parameter period (p_period) and based on the p_period value(XX), I need to display the HSLXX, KSLXX from table GLT0 using field symbols. Can anyboby help me?
    Thanks,
    Chandni Reddy

    Right, you can use field-symbols,  here is a example.
    report zrich_0002.
    data: xGLT0  type  GLT0 .
    data: field_name(20) type c.
    field-symbols: <fs> .
    parameters: p_per(2) type n.
    * Read a line from table
    select Single * from glt0 into xglt0.
    * Build the field name that you want to access
    concatenate 'XGLT0-HSL' p_per into field_name.
    * Assign it
    assign (field_name) to <fs>.
    * Write it
    write:/ <fs>.
    Regards,
    Rich Heilman

  • How to code a NEXT button

    Hello everyone,
    I am developing an web application in jsp.As a part of this application i need to get a list of records from the database.As per my code all the records are being listed in the same page. But i want to display some 50-100 records per page and keep a NEXT button on each page so that when the user clicks on this button he can go to the next set of records.But i am not getting an idea abt how to code this.So can anyone help me in this regard or just give me an idea of how to print a certain no. of records per page and the NEXT button coding.

    Is your application only jsp or struts or jsp/Helper java classes?
    In any case, assuming that the number of records are not very large, it is better to avoid repeated DB calls. The common way to implement this is to fetch all the records and store it in a data structure(an ArrayList for eg:) in the session. You would also have to maintain another variable for the current last record number. On click of the next button, fetch the records from current last record to current last record + 50 (or 100 or infact, you can make this as a variable too) from the session ArrayList and show it in the same jsp. Also, update the current last record number.
    The other way around (if at all you have session considerations) is to make a new call to the DB everytime you click on Next.

  • How to code  EXIT_SAPLACC4_001...Kindly Help

    Hi gurus,
    I have to code a user exit EXIT_SAPLACC4_001 so that it can accomodate custome fields...I know there is a parameter in the tables tab in this FM where we have fields using which we can do  this...but i am not sure on how to code this...can anuone out there please help me with this...also steps to do this will be helpful...
    can someone help...
    Cheers:
    Jim
    Message was edited by:
            jimmy wiliams

    Hi Jim,
    The following is the documentation from fm
    Table for Customer Enhancement
    Description
    Container used to transfer data for calling up user exits when processing update BAPIs in Accounting. The user exit must be activated with transaction CMOD (extension ACBAPI01) for this to be possible.
    In addition to the container (structure BAPIEXTC), the document header (structure ACCHD) and line items (structure ACCIT) from the accounting document are also transferred in the exit. The accounting document header and line items can be supplemented or modified in this way.
    The container does not have a structure, which means that the user can transfer any data in character format. If line items are to be supplemented, the relevant line item ( ITEMNO_ACC,), which is also contained in other parameters, must be transferred, as well as the data.
    Notes
    The accounting document is a temporary document and is used by the system to provide all relevant data for the components carrying out updates. The document itself is not updated.
    Further Information
    User exit documentation
    and also check the following thread give you info related to how to fill up custom fields
    <a href="http://www.sapfans.com/forums/viewtopic.php?t=137643&postdays=0&postorder=asc&highlight=bapiaccglpostingpost+extension1&start=0">Link From Sapfans.com</a>
    aRs

  • How to code APPROVAL_ADMINISTRATORS in n-step WF?

    Dear SAP gurus,
    I see that if we are using n-step WF we need to define an administrator where we have to fill out table APPROVAL_ADMINISTRATORS. However I'm a bit confused of how to code this. Seeing from the threads in this forum, many people mention that we should code no_further_approval_needed = X, and i follow the suggestion. So I code like this:
    IF approval_table[] IS INITIAL.
    *to select admin from default WF admin    
         SELECT SINGLE * FROM swd_custom
                             INTO  ls_swd_custom
                             WHERE user_name EQ c_sap.
          ls_approv_name = ls_swd_custom-def_admin+2(12).
                ls_administrators-approval_index = actual_approval_index.
                ls_administrators-approval_agent       = lv_agent.
                ls_administrators-name                 = 'Administrator'.
                ls_administrators-approval_description = 'Administrator is the approvar'.
                APPEND ls_administrators TO approval_administrators.
                no_further_approval_needed = 'X'.
    ENDIF.
    However if I code like that, though no agent is determined, i got no approval required which I believed happens because the no_further_approval_needed = 'X'.
    Then I read in the library that the admin will only be read IF the agents cannot be determined AND approval is required. As such I deduce it means that I should not put X into no further approval needed. So I just remove the X, and guess what happen? The admin got determined, and as an admin, I approve the SC. And when I approve the line got read again, and admin got determined and the admin got the work item again. So this is coming into an endless loop.
    How should I code this? Please help.
    Best regards,
    John

    Hi
    <b>Please provide the System version details -></b>
    <u>Administrator Approval Determination - coding</u>
    Re: doubt
    Re: Approving agents of an item in SC ?
    Re: N-step BADI workflow
    Re: Shopping cart not emitted to the right manager cause change unit
    <b>Also check SAP OSS Note -> </b>
    Note 978709 - Administrator receives no work item for the BADI workflow
    <u>First check whether the approval_table[] is initial.If so,you will have to populate the table approval_administrators so that the SC is sent to the default administrator if the approvers are not found. Also make sure in the field "approval_agent",you are assigning the username as "USXXXXX".</u>
    Hope this will help. Do let me know.
    Regards
    - Atul

  • Error code: ssl_error_no_cypher_overlap comes up when I try to veiw the log in screen on tumblr, how to fix this in FireFox 26.0?

    I can browse through tumblr just fine, but whenever I go to the login page it said:
    Secure Connection Failed. An error occurred during a connection to www.tumblr.com. Cannot communicate securely with peer: no common encryption algorithm(s). (Error code: ssl_error_no_cypher_overlap)
    I understand that tumblr has certification errors but that never happened to me before I until I upgraded to Firefox 26.0. I like FF and I don't want to use any other browser.
    How to fix this?

    Does it help if you either disable SSL3 or disable TLS as a test?
    security.tls.version.min = 1 and security.tls.version.max = 1 disables SSL3 and enables TLS 1.0
    security.tls.version.max = 0 and security.tls.version.max = 0 enables SSL3 and disables TLS 1.0
    Type <b>about:config</b> in the location (address) bar and press the <i>Enter</i> key to open the <i>about:config</i> page like you open a website by typing the URL in the location bar.
    *If you see a warning message then you can confirm that you want to access the about:config page.
    *http://kb.mozillazine.org/about:config
    See:
    *http://kb.mozillazine.org/security.tls.version.*
    0 means SSL 3.0, 1 means TLS 1.0, 2 means TLS 1.1, etc.
    You can try to rename the cert8.db file in the Firefox profile folder to cert8.db.old or delete the cert8.db file to remove intermediate certificates that Firefox has stored.
    If that helped to solve the problem then you can remove the renamed cert8.db.old file.
    Otherwise you can rename (or copy) the cert8.db.old file to cert8.db to restore the previous intermediate certificates.
    Firefox will automatically store intermediate certificates when you visit websites that send such a certificate.
    If that didn't help then remove or rename secmod.db (secmod.db.old) as well.

  • I deleted my back up files from my external hard drive and my trash won't empty. I get an error code -22. Can anyone tell me how to fix this?

    I deleted my back up files from my external hard drive and my trash won't empty. I get an error code -22. Can anyone tell me how to fix this?

    JLCruz wrote:
    I deleted my back up files from my external hard drive ...
    If this is related to Time Machine Backups...
    See here  >  Should I delete old backups?  If so, How?
    From Here  >  http://pondini.org/TM/FAQ.html
    If the TRASH still won’t Empty...
    See Here  >  http://pondini.org/TM/E6.html

Maybe you are looking for

  • Serial-Number for creative Cloud

    Hi, I purchased Creative Cloud some days ago, and I can´t get through to the programs without having a serial number. But I know I´m not supposed to need one. I asked the support team for help, and they said i should do this: Open a  Finder window. C

  • How do i connect to sql server 2012 from cmd .

    Hi , I Installed sql server 2008 R2 and 2012 Express and sql server2014 . I can conect to sql server 2008 R2 using SQLCMD -L command . How do i connect to sql server 2012 express edition from cmd . Any Hep appreciated Thanks in advance, Shravan

  • Exp error on Oracle 9.2.0.1.0

    Hi. Newbie here. I'm getting this error on the export command. EXP-00008: ORACLE error 1031 encountered ORA-01031: insufficient privileges ORA-06512: at "SYS.LT_EXPORT_PKG", line 63 ORA-06512: at line 1 EXP-00083: The previous problem occurred when c

  • Struggling with web services

    I want to create a simple web service using SOAP. I've googled around, but tutorials are either too simple (only primitives passed to web service, no user-defined instance) or incomplete. If possible, I wish to use Java built-in libs only, so no axis

  • Intrastat - Mode of Transport missing in purchase order header

    We have a problem where for a supplier there is missing import data for some materials - but not others. As far as I can tell the Info Records for those with missing data are identical to those where there is no data. For example, the Incoterms field