How to handle two operations on same infotype in SAP_PA backend service?

I have a requirement where I need to design the process either create or change the record of a child in infotype 0021.
The SAP_PA does not allow multiple operations on same infotype. It would be great if someone can give me an idea as to how this scenario can be handled.

Hi,
You can add the following code in on approve method to show popup to the user,
IF req_edit IS NOT BOUND. " gloabl attribute in impl class of the view
    REFRESH lt_buttons.
    lss_button-id  = 'btnyes'.
    lss_button-text = 'YES'.
    lss_button-on_click = 'YES'.
    APPEND lss_button TO lt_buttons.
    CLEAR lss_button.
    lss_button-id  = 'btnno'.
    lss_button-text = 'NO'.
    lss_button-on_click = 'NO'.
    APPEND lss_button TO lt_buttons.
    CLEAR lss_button.
    CALL METHOD comp_controller->window_manager->create_popup_2_confirm
      EXPORTING
        iv_title          = 'ATTENTION'
        iv_text           = 'Are you sure you want to edit this document?'
        iv_btncombination = '99'
        iv_custombuttons  = lt_buttons
      RECEIVING
        rv_result         = req_edit.
    req_edit->set_on_close_event( iv_event_name = 'EDIT' iv_view = me ). "#EC NOTEXT
    req_edit->open( ).
    RETURN.
  ELSE.
    lr_node ?= req_edit->get_context_node( 'OUTPUTNODE' ).
    lv_outbound = lr_node->get_event_name( ).
*  CLEAR ptc_pricing_status.
*    lv_outbound = req_edit->get_fired_outbound_plug( ).
    IF lv_outbound = 'YES'.
you can use the submit report code here and you can al the validations here
    ELSE. " No
if user clicks no nothing to do..
    ENDIF.
    CLEAR req_edit.
  ENDIF.
Best Regards,
Dharmakasi.

Similar Messages

  • How to display two grids in same screen using SALV Method

    Hi Freinds,
    Please let me know how to display two grids in same screen using SALV Method.
    Thank you
    Regards,
    SDV

    Using the same concept as described in How to dispaly Three Internal Table  Data (One below another) in ALV OOPS .
    All you need to add is passing your new containers as r_container parementer of factory method.
    "1st one
          cl_salv_table=>factory(
             EXPORTING
               R_CONTAINER    = g_top_container
    "2nd one
          cl_salv_table=>factory(
             EXPORTING
               R_CONTAINER    = g_bottom_container
    Regards
    Marcin

  • How to separate two contact with same name

    Hi, anyone knows how to separate two contacts with same name in Contacts?  Actually they are two persons from two gmail contacts with same name but different contact numbers, different emails....etc, but Contacts assume they are same person and merge them as one!

    FG,
    In Lion, you have the File > Duplicate option. You will then have two copies of your document open, and the one on top will have the temporary filename "OriginalFileName copy", and your next responsibility is to File > Save (or Command-S) and rename the duplicate. At this point, you edit the copy's name, to perhaps ...copy 1, or whatever you wish. The document you had open when you initiated the File > Duplicate will still be there on your screen, waiting for you to Close it or continue editing.
    Jerry

  • How to write two triggers on same table how it works?

    Hello sir..
    I have to write two triggers on same table for auditing different columns of different pages (may be different modules).
    I will have an audit table in which i will insert data such as (user_id,module_id,column_name,old_col_val,new_col_ val,timestamp)
    Now different users from different pages will update the data on same table may be same columns!
    If we write directly, we will not be able to know which column is updated from different pages.
    My question is how can we control the triggers to raise based on the pages

    A trigger is executed whenever the table is inserted / updated / deleted (depend on trigger definition). It won't know what 'page' caused the operation. You can prepare a trigger for one page.
    In order to fulfill your need, you need some way to tell the trigger where you are. There are many ways to accomplish this. Some possible methods are (please check the documents for detail)
    DBMS_SESSION.SET_IDENTIFIER
    DBMS_APPLICATION_INFO.SET_MODULEFor example, you can call DBMS_SESSION.SET_IDENTIFIER to set an ID from your page, and then call sys_context to read the ID back:
    In Page:
    exec dbms_session.set_identifier('Page1');
    ...In Trigger
    pageid  := sys_context('USERENV', 'CLIENT_IDENTIFIER') ;
    ...Note that if you use a connection pool, you may need to properly reset the session information before return, in order to avoid messing up the session information when the connection is used next time.

  • How to handle two radio buttons in modulepool program

    hi,
      i am creating 2 radio buttons on the initial screen of a modulepool program, here i am unable ot handle those 2 radio buttons.
      when executing by default these two radio buttons are selected.
      pls send me the sample code that how to handle.

    Prasad,
    In the Screen Painter, highlight both radio buttons at the same time (using CNTL key).
    From menu bar, choose: Edit > Grouping > Radio Button Group > Define.
    Now they are "linked" to each other.
    Don;t forget those points.

  • How to give two values of same field in read Statment

    Hi,
    Please Tell me how to give the two values of same field in read statements Condition.
    i.e
      Read table it_tab with key matnr = '1' or matnr = '2'.
    With Regards
    Kesavaperumal

    Hi Kesavaperumal,
    <li>You can not use OR operator with READ TABLE statement.
    <li>You have to use different fields of the internal table in where condition.
    <li>If you want to compare with two values, you need to use LOOP statement.
    LOOP AT it_mara WHERE matnr = '1' or matnr = '2'.
    "Write code
    ENDLOOP.
    Thanks
    Venkat.O

  • How to handle discontinuing operations from BCS?

    Hi All,
    I would like to find out how BCS handle scenario on 'Discontinuing operations' so that information pertaining to discontinuing operations and continuing operations can be clearly distinguish in Income statement and Cash Flow report.
    Thanks in advance.
    Regards,
    Jasmine

    Jasmine,
    I mean an infoobject that plays the role of a flag. For example it might be CHAR 1 or NUMC 1 infoobject. If it's value EQ to 0 or not set - it's usual operation. If its = 1 (or -1) - then it's discontinued.
    In the report you'll place usual items into report twice, restricting them by 0 in one case (usual operations) and by 1 in another set of values (discontinued operations).
    Certainly your feeder system should supply the amount of this flag.
    In general, I think a separate set of items Iwithout a flag infoobject) for discontinued operations is preferrable.

  • How to handle two main screens in one program.?

    Hi Experts,
    I have implemented ALV TREE report using Object oriented paradigm. So i have used screen 100 to contain custom container. Now i need to add this code another program . I need to create one push button as soon i press this button it should display this report. Now problem is another program also has one main screen. Now please let me know how to handle this problem. Please help me.
    Thanks and regards,
    shivanand.

    ok shivanand,
      check out this link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9db635c111d1829f0000e829fbfe/frameset.htm
    hope it will help you.
    Thanks

  • How to merge two views of same criteria in Answers

    Hi All,
    Is there any way we can merge two views of same criteria in Answers.
    I have two pivot tables built from same criteria. But in the final report I want to show the two reports as a single report. Is this possible?
    Best Regards,
    BTK.

    Hi,
    I cannot use "Combine with Similar Request". I need drilldown also. When I use "Combine with Similar Request", then drill down is getting disabled.
    Best Regards,
    BTK.

  • How to create two prompts with same named object?

    Hi to All,
    I am a new user of OBIEE. Actually have only one column called creation date in my report. My requirement is in dashboard, I need to display two text boxes in same prompt with the name Beginning creation date and Ending Creation Date. Actually, I was able to do it with the operator "Between" but when i am doing it, I was not able to determine how can we get the values entered by the user for beginning date and ending date because both dates will get stored in the same prompt only (ie) in my "Creation date" prompt.
    Also, I have an another question, In a single prompt I need to repeat the same object more than once. But When I tried it shows the error "same column exists.. so this action will be ignored". Please help.
    Thanks in Advance,
    Thenmozhi

    Thenmozhi,
    You can think about having 2 different prompts: the first one with the operator >= and the second <=.
    For your second question you cannot have the same column in the same prompt more then once
    Regards
    Adil
    PS:Please assign points and close the thread when your question is answered

  • How to install two iTunes on same PC for two iPods?

    My family now proudly owns 2 iPods, but we only one PC. So it needs to host two iPods, with their resepctive iTunes on it.
    I thought this was going to cause problems, and worried that installing iTunes for the most recently purchased iPod would overwrite the existing programme, wipe the music off it and cause my middle daughter to kill me. The guy in the shop said, no problem - create a new User Account and install the new iTunes on that, and it would be OK. So I did.
    I got a bit worried when the install prog wanted me to put the new iTunes into the same folder that the old one was in, (even though I was logged in as a different, new user) so I found a new location for it and went ahead.
    Guess what - it wiped the old iTunes anyway. When I opened up the old one, it had been overwritten anyhow.
    I did a system restore to try and get it back to the previous setting - deleting the new user I had created. And went back into the old version of iTunes to see if the music files had come back. But it wouldn't even run - saying that some files were now missing.
    This is doing my head in, it's happened before (and I had to buy Copypod to restore the stuff on my iPod).
    How can you get two copies of iTunes on the same PC running two separate iPods?!! And how can I get the overwritten files back?
    Various   Windows XP Pro  
    Various   Windows XP Pro  
    Various   Windows XP Pro  

    You don't need two copies of iTunes. There are a couple of methods for using more than one iPod on a single computer. Have a look at the article linked below. Method one is to have two Mac or Windows user accounts which by definition would give you two completely separate libraries as each account using iTunes will have it's own iTunes Music Folder. Method two is to set your preferences so each iPod is updated with only certain playlists within one library. Have a look anyway and see what you think and go for whichever you feel suits your needs best: How To Use Multiple iPods with One Computer

  • How to have two times the same iTunes library ?

    My parents are separated, so I have two computers (one with my father and the other one with my mother) and all my music is in the computer with my mother, I want to have the same iTunes library to my father how I should do?

    Not an easy one. Maybe you can try on both computers ) if they are both Macs or both PC to setup your iTunes Librery to be on an external USB drive. Under Windows make sure the USB HDD always mount with the same letter. Both computers should be Authorized for your account.

  • How to handle pay scale tables in infotype 0008?

    Hi friends,
    I have 2 questions:
    1) What's the difference between "Pay Scale Groups And Levels" (view v_t510)  and "Pay Grades And Levels" (view v_t710). And In which case apply each one?.
    2) I have a pay scale table with differents levels, for each level i have a minimun and maximun salary. I think i can handle this by using "pay grades and levels", but in the infotype 8 in the pay scale data i indicate the type, the area, and when i going to select the group the search help displays the values of the "pay scale groups and levels" and i would like to know how to display the "pay grades and levels" instead of the displayed currently?.
    Thanks in advance,
    Albio Vivas.-

    1. Pay scales - >  These are used when you have logical step increases in employee's salary.  Fixed increases that can be defined in configuration.  These are good, becuase they are easily maintained through configuration and standard programs update the employee master data for you.
        Pay grades - > These are used when you do not have fixed compensation for employees and need a salary range to go by, so you use these are a range.
    2. As for manipulating whether an employee used a scale or a grade list on info type 8  is dictated by feature TARIF located in transaction PE03.
    thanks.
    JB

  • How to run two files with same url-  urgent

    hi,
    i created two servlet page and both are working very fine.but at same time i only able to run one file with same url. Is possible to run two or more file at same time with same url name..
    if you r not understanding what i want to ask then, i have two file names under helloWeb directory
    1) helloWorld.java(servletname s1, url /man)
    2) helloWeb.java (servletname s2,url /man)
    to run - http://localhost:7001/helloWeb/man - it runs very first file which is added to deployment module.
    so i want to know how i can run both file with same url, for this what i have to pass on my address bar.
    plz help me i m wating
    <b></b>

    Hi,
    We can give same url mapping to both Servlets but we can access the servlet which is entered first in web.xml because whenever we send a request to the webserver then webserver look at the elements in web.xml file one by one.
    When it finds the corresponding url mapping then immediately sends the response to the client.The same url mapping for the next element will be ignored.
    I think there is no possibility to access both servlets with same url.
    Regards
    Anilkumar kari

  • How to join two groups at same level

    I need to make a new report using the XML EBS generates. In this case I have two groups (Operations and Employee's). I'd like to show all operatsions and within that join to the Employee. I cant seem to get it to display only one employee. Need help. I've now spent hours on this!
    XML sample:
    <?xml version="1.0" ?>
    <ROWSET>
    <WORKORDER_LIST>
    <WORKORDER WIPENTITYID="2001">
    <NAME>401</NAME>
    <OPERATION_LIST>
    <OPERATION>
    <OPSEQNUM>10</OPSEQNUM>
    <OPDESC>fix it</OPDESC>
    </OPERATION>
    <OPERATION>
    <OPSEQNUM>15</OPSEQNUM>
    <OPDESC>call when done</OPDESC>
    </OPERATION>
    </OPERATION_LIST>
    <EMPLOYEE_LIST>
    <EMPLOYEE>
    <EMPOPSEQNO>10</EMPOPSEQNO>
    <EMPFULLNAME>Joe Blow</EMPFULLNAME>
    <EMPDEPTCODE>SHIPLOAD</EMPDEPTCODE>
    </EMPLOYEE>
    <EMPLOYEE>
    <EMPOPSEQNO>15</EMPOPSEQNO>
    <EMPFULLNAME>Sallly Sue</EMPFULLNAME>
    </EMPLOYEE>
    </EMPLOYEE_LIST>
    </WORKORDER>
    </WORKORDER_LIST>
    </ROWSET>
    Sample RFT I'm building.
    <?for-each:OPERATION?>
    Operation:<?OPSEQNUM?> <?OPDESC?>
    <?for-each://EMPLOYEE?>
    <?if://OPSEQNUM=EMPOPSEQNO?>
    Employee: <?EMPFULLNAME?>
    <?end-if?>
    <?end for-each:EMPLOYEE?>
    ====Next Operation=====
    <?end for-each?>
    What I want to see is:
    10 fix it Joe blow
    15 call when done Sally Sue
    Can anyone please help?!

    Both options do exactly what I'm looking for! Now I just have to understand it. I cant tell you how much I appreciate your posting. I spent hours on this and did not come close to answer!
    --Dave                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • Freezing, force quit, and crashes, please help!

    The past few days my desktop mac computer has been having trouble with Safari. It has been freezing at times when it normally would have been fine, such as when I click a link on my email, which leaves using force quit as my only option. When Safari

  • Schedule Mass Crystal Report

    Hi, Problem: Schedule a mass report for crystal report XI R2 in BO Enterprise XI R2 Example: If i would like to export the customer's report separately for 1000++ customers, how can I design the crystal report so that i can export the data individual

  • Exists Operator

    Hi everyone, I have a problem with the NOT EXISTS operator in oracle. I have 3 tables. Customer(cust_id, cust_name) Truck(truck_id,driver) Shipment(shipment_id,cust_id,truck_id) truck_id and cust_id are foreign keys in shipment table. I have to List

  • How to notify users when they are timed out?

    So I am a developer for fortune 500 company and the network infrastructure team came to me with an odd request for an application that taps into Anyconnect. I find it hard to believe that this functionality doesn't exist. So here is the scenario. We

  • How does it work? SuperDrive with double-layer support

    Hi, Can anyone help me? I own a macbook with SuperDrive with double-layer support. I want to try to burn a dvd with the dual layer, how does this work? Which applications do i need? I have been searching for info on this subject but havent succeeded