Callin two different subscreens which belong to different function groups

hi,
I have a  main screen which contains two subscreens say 'sub1' and 'sub2'. This main screen is part of the function group say 'A'. 'sub1' is also part of this function group 'A' and hence i am able to get the data. But, 'sub2' is part of the function group 'B'. So when i call this subscreen i am unable to fetch the data. So, i wanted to know is there any way to fetch the data from the function group "B" and display it in the subscreen of function group "A".
i wrote the codes like this:
PBO:
CALL SUBSCREEN sub1
        INCLUDING 'SAPLZNEW_ORDER' c_sub1.
  CALL SUBSCREEN sub2
        INCLUDING 'SAPLZ_CONTENT' c_sub2.
PAI:
call subscreen sub1.
call subscreen sub2.
The above is not working because the internal tables get refreshed when the call to subscreen 'sub2' is done.
Help will be appreciated with points.
Thanks.

Hi
U have to create 2 fm in function group B:
- one to transfer the data from main screen (so fg A) to subscreen SUB2 (so fg B)
- one to return the data from subscreen SUB2 (so fg B) to main screen (so fg A).
PROCESS PBO.
  CALL SUBSCREEN sub1 INCLUDING 'SAPLZNEW_ORDER' c_sub1.
  MODULE TRANSFER_DATA_TO_SUB2.
  CALL SUBSCREEN sub2 INCLUDING 'SAPLZ_CONTENT' c_sub2.
PROCESS PAI.
  call subscreen sub1.
  call subscreen sub2.
  MODULE GET_DATA_FROM_SUB2.
So u need to insert a module before calling subarea SUB2 in order to transfer the data:
MODULE TRANSFER_DATA_TO_SUB2.
   CALL FUNCTION 'Z_SET_DATA'
       EXPORTING
ENDMODULE.
The IMPORTING paramenter of this new fm has to allow to transfer all data u need to manage the subscreen of SAPLZ_CONTENT.
Here u can insert all code in order to fill the input/output field of subscreen.
In PAI u can insert another fm in ordert to get the data setted in subscreen of SAPLZ_CONTENT':
MODULE TRANSFER_DATA_TO_SUB2.
   CALL FUNCTION 'Z_GET_DATA'
       IMPORTING
ENDMODULE.
The EXPORTING paramenter of this new fm has to allow to transfer all data u need to manage in main screen.
It's import both function modules belong to the function group Z_CONTENT.
Max

Similar Messages

  • Extend article wrt. different store which belong to different Company code

    Hi experts !!!!
    Would like to get u r suggesations
    We have Scenario like two company codes.
    In First company code we have  one Distribution centre and in Second Company code we have five store
    The Article we have created in distribution Center belongs to First Company code
    and same Article we need to extend to all store which belong to second company code
    please advice
    thanks in advance

    The scenario is called Cross Company Code Stock transfer.
    If your company's distribution center and store belong to different company codes and you need to transfer goods from one to the other, you must create a stock transport order with document type NB. This involves the process stock transfer with billing document. As in normal stock transport orders, an SD delivery with a
    specific delivery type (NLCC) is created for this combination of supplying site and document type NB. This ensures that an invoice can be sent to the store.
    Read more in detail on below mention link.
    http://help.sap.com/erp2005_ehp_03/helpdata/en/4d/2b917843ad11d189410000e829fbbd/content.htm

  • We want to create an online contract form with different options which will determine different prices as they make their choices. We will also require a legally binding e-signature. Is Acrobat the best product or even an option for this?

    We want to create an online contract form with different options which will determine different prices as they make their choices. We will also require a legally binding e-signature. Is Acrobat the best product or even an option for this?

    You need to use form fields. See the Acrobat help section and this site: https://acrobatusers.com/tutorials/
    However, that last part (receiving an automatic response when a form is submitted) has nothing to do with Acrobat, or even with the PDF file. This is something you'll need to set up on your web (or email) server.

  • Cookie being used in different applications which are on different database

    Hi,
    I have two htmldb applications. One app (App1) is on database DB1, and the second one (App2) is on database DB2. App1 will create a cookie, and App1 will use URL to redirect to App2. App2 will use the cookie which App1 created.
    The problem is in App2, I used owa_cookie to get the cookie but, it is not there.
    I know different htmldb applications in the same workspace (in the same database) can share the cookie. Can the htmldb applications in the different databases share the same cookie?
    Thanks.
    June

    Scott,
    Thank you for your reply.
    In App1, I have set a cookie as following:
    begin
    owa_util.mime_header('text/html', FALSE);
    owa_cookie.send(
    name=>'LOGIN_USERNAME_COOKIE',
    value=> 'abcd');
    owa_util.http_header_close;
    exception when others then null;
    end;
    App1 in DB1 accesses source(URL) App2 (eg: http://mymachin.domain.com:7778/dbname/f?p=100:101).
    App2 in DB2 has a process (On Load -Before Header) in login page to get the cookie:
    declare
    v varchar2(255) := null;
    c owa_cookie.cookie;
    begin
    c := owa_cookie.get('LOGIN_USERNAME_COOKIE');
    :P101_USERNAME := c.vals(1);
    exception when others then null;
    end;
    I just want to pass the username from App1 to App2.
    Is there any way the cookie can be shared in my case?
    Thanks.
    June

  • I have a Apple MacBook Pro "Core i7" 2.8 13" Late 2011. i want to upgrade its RAM from 4GB to 16GB. But OWC sells two kinds of RAM, the DDR3 and the DDR3L.What is the different and which one would work better for my mac. Thanks!!!

    Please help! I have a Apple MacBook Pro "Core i7" 2.8 13" Late 2011. i want to upgrade its RAM from 4GB to 16GB. But OWC sells two kinds of RAM, the DDR3 and the DDR3L.What is the different and which one would work better for my mac. Thanks!!!

    I don't see any DDR3L on the page for the RAM that would fit your model -> http://eshop.macsales.com/shop/memory/Apple_MacBook_MacBook_Pro/Upgrade/DDR3_133 3MHz_SDRAM.
    But the answer is that it doesn't really matter - just make certain to get 1333MHz.
    Good luck,
    Clinton
    MacBook Pro (15-inch Late 2011), OS X 10.??, 16GB Crucial RAM, Crucial M500 960GB SSD, 27” Apple Thunderbolt Display

  • MAM Order - Two items having Booking Units with Different Company Code

    MAM order created with 2 Line Items
    Booking Unit in each Line Item belongs to different Company Code .( Internal Order within each Booking Unit has different Co. Code )
    After billing individual Line Items ,Two separate Billing doc. will be created for this Order
    Each Billing document should be posted to different Co. Code depending upon Co. Code in Internal Order of respective Booking Unit
    TS - 9350801900

    Dear Chandramohan ,
    Thanks for the reply .
    But the solution given by you will just change the message class .I wanted to post Two different Line Items within a single MAM Order to different Co Codes after billing . 
    Scenario is that SOrg1 assigned to CCode1 & SOrg2 assigned to CCode2 .
           Booking Unit  BU1 has Internal Order belonging to CCode1 & BU2 has Internal Order belonging to CCode2
    Now MAM Order1 created with SOrg1 having Two Line Items with BU1 & BU2
                    After Billing ,Two Billing Docs will be created for each Line Item .
                     Both Billing Doc will be posted to CCode1
    Now MAM Order2 created with SOrg2 having Two Line Items with BU1 & BU2
                    After Billing ,Two Billing Docs will be created for each Line Item .
                     Both Billing Doc will be posted to CCode2
    Means even if Two Line Items are created within a single MAM Order having BU of different Co Codes ,after billing both Billing Docs will be posted to Co Code of Sales Org at Header level .
    As per the requirement ,irrespective of header Sales org , Line Items needs to be posted to respective Co Code of Booking Units .
    Tds ,
    TS

  • Project stock belongs to different plant than the plant in project definition

    Dear all,
    I have a case:
    Project belongs to plant A (which is entered in the project definition), but there's a material in project stock which is belongs to plant B (checked in MMBE, the material under this project, but under plant stock B).
    Is this the normal case of SAP standard? As I never seen this case before (always project stock belongs to the same plant as entered in the project definition).
    Awaiting for your answer& clarification.
    Thanks and best regards,
    Andy

    Thanks for your helpful answer.
    I'd like to explain more about this case:
    I found a PO and a good receipt document to the project stock, and the plant in these documents is plant B.
    Then the material appear in MMBE under project stock and plant B.
    But when I check the project in CJ20N, the plant in project definition is plant A.
    As the requirement is to reverse the goods receipt document, but when doing so, system issues a message as "inconsistency data", so I confuse is it because of the different in plant stock in goods receipt document and plant in project.
    That's why I ask is this the standard case if material in project stock belongs to different plant than the plant in project definition.
    Hope you understand clearly my situation.
    Do you have any more suggest in this case?
    Thanks and best regards,
    Nghia

  • Hotsync two different Palms that use a different version of Palm Desktop

    What I need to know is I have a Palm IIIe & a Palm Zire 31 both of which use a different version of Palm Destop can a install both versions of Palm Desktop on a single computer and then be able to hotsync both devices. Or will both of them hotsync with the same version of Palm Desktop.
    Palm Desktop 4.1.4e for the Palm Zire 31
    Palm Desktop 4.1.4 for the Palm IIIe
    Post relates to: Zire 31
    This question was solved.
    View Solution.

    Hello obsolete.
     I haven't tried your specific combination of devices before, but I think it should work.  I would install Palm Desktop 4.1.4 and then sync the Palm IIIe first.  Once you know that the Palm IIIe is syncing normally, I would then install Palm Desktop 4.1.4e on top of 4.1.4, upgrading it.  Then sync the Palm IIIe to make sure it is still working.  If it is, then attempt to sync your Zire 31.
    Since you will be syncing two devices to the same computer, I recommend that each device have it's own unique HotSync ID to prevent things from going bad on you.
    Alan G

  • Conversion between units belonging to different dimensions.

    Hello Friends,
    Is there any standard way available in BI 7.0 to convert unit cubic meter (M3) to Tonnes (TO). I am struggling to convert as both the units belong to different dimensions (M3 -> Volume and TO -> Mass).
    There is a function module in R/3 (MD_CONVERT_MATERIAL_UNIT) which does the required conversion. I am not able to find an equivalent in BI.
    Please assist as this is time critical. Thanks!
    Regards,
    Prem.

    Hello Prem,
    See this doc
    [How to Report Data in Alternate Units of Measure|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b7b2aa90-0201-0010-a480-a755eeb82b6f]
    Thanks
    Chandran

  • HI Team, Recently One week back I bought a new iphone 5 from India. They have given me a used mobile which has a different IMEI number when compared to the IMEI number present on the box. Please let me know how to proceed further

    HI Team, Recently One week back I bought a new iphone 5 from India. They have given me a used mobile which has a different IMEI number when compared to the IMEI number present on the box. Please let me know how to proceed further

    When you went back to the place where you purchased this phone, & asked them, what did they say?
    No one here can help you with this, nor can/will Apple. You need to take this up with whoever you purchased this phone from.

  • HT204053 I have an iCloud account on my Mac which has a different account name to that on my iPhone. How can I change the Mac account name to that on the iPhone?

    Hi,
    I have an iCloud account on my Mac which has a different account name to the iCloud account on my iPhone. How can I change the Mac account name to match the iPhone one? Kuranda.

    You can't change it in one step. Sign out of the one now on the Mac, sign onto the right one.

  • Since purchasing the Note 3 in October i have had nothing but issues. I went through all the steps and eventually I was sent a different phone, which was working for the most part until the recent upgrade. Now I am back to the old issues, no service, it a

    Since purchasing the Note 3 in October i have had nothing but issues. I went through all the steps and eventually I was sent a different phone, which was working for the most part until the recent upgrade. Now I am back to the old issues, no service, it actually says not moblie network available, when everyone else in my family has coverage and are on my plan with iphones. I am missing text messages and dropping calls left and right. This is unacceptable for the cost of this phone and my service. I have did a hard reset etc. What else can I do??

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • Leading in Pages. I've just discovered that different typefaces seem to have different auto-leading in Pages. I am used to default leading being 120% of point size, but it seems this is not so any more. The same text in 10pt Times New Roman, which I would

    I've just discovered that different typefaces seem to have different auto-leading in Pages. I am used to default leading being 120% of point size (or some consistent rule), but it seems this is not so any more. The same text in 10pt Times New Roman, which I would expect to line up with 10pt Palatino, for example, doesn't. I've tried using the inspector, at least to get both faces to behave the same for given settings, but I haven't been able to. How much control does Pages allow for this type of settings, and are there any hidden secrets as to how to do so? Many thanks
    Message was edited by: Just me then

    If you set the line spacing in the inspector to Exactly and 12 points for 10 point type, it will work the way you want.

  • Two methods with same name but different return type?

    Can I have two methods with same name but different return type in Java? I used to do this in C++ (method overloading or function overloading)
    Here is my code:
    import java.io.*;
    public class Test{
    public static void main(String ar[]){
    try{          
    //I give an invalid file name to throw IO error.
    File file = new File("c:/invalid file name becasue of spaces");
    FileWriter writer = new FileWriter(file ,true);
    writer.write("Test");
    writer.close();     
    } catch (IOException IOe){
         System.out.println("Failure");
    //call first method - displays stack trace on screen
         showerr(NPe);
    //call second method - returns stack trace as string
            String msg = showerr(NPe);
            System.out.println(msg);
    } // end of main
    public static void showerr(Exception e){
         StringWriter sw = new StringWriter();
         PrintWriter pw = new PrintWriter(sw);
         e.printStackTrace(pw);
         try{
         pw.close();
         sw.close();
         catch (IOException IOe){
         IOe.printStackTrace();     
         String stackTrace = sw.toString();
         System.out.println("Null Ptr\n" +  stackTrace );
    }//end of first showerr
    public static String showerr(Exception e){
         StringWriter sw = new StringWriter();
         PrintWriter pw = new PrintWriter(sw);
         e.printStackTrace(pw);
         try{
         pw.close();
         sw.close();
         catch (IOException IOe){
         IOe.printStackTrace();     
         return sw.toString();
    }//end of second showerr
    } // end of class
    [\code]

    Overloading is when you have multiple methods that have the same name and the same return type but take different parameters. See example
    public class Overloader {
         public String buildError(Exception e){
              java.util.Date now = new java.util.Date() ;
              java.text.DateFormat format = java.text.DateFormat.getInstance() ;
              StringBuffer buffer = new StringBuffer() ;
              buffer.append(format.format(now))
                   .append( " : " )
                   .append( e.getClass().getName() )
                   .append( " : " )
                   .append( e.getMessage() ) ;
              return buffer.toString() ;
         public String buildError(String msg){
              java.util.Date now = new java.util.Date() ;
              java.text.DateFormat format = java.text.DateFormat.getInstance() ;
              StringBuffer buffer = new StringBuffer() ;
              buffer.append(format.format(now))
                   .append( " : " )
                   .append( msg ) ;
              return buffer.toString() ;
         public String buildErrors(int errCount){
              java.util.Date now = new java.util.Date() ;
              java.text.DateFormat format = java.text.DateFormat.getInstance() ;
              StringBuffer buffer = new StringBuffer() ;
              buffer.append(format.format(now))
                   .append( " : " )
                   .append( "There have been " )
                   .append( errCount )
                   .append( " errors encountered.")  ;
              return buffer.toString() ;
    }Make sense ???
    Regards,

  • Planning Book Macro which can read different key figures from data views

    Hi Experts,
    I am looking for help to create a Planning book level macro which is having capabilities to read different Key Figure across the different Data Views. For example DataView 1 has Sales Orders and Data view 2 has Forecast and I want put in Data view 3 the netted numbers from SO and Forecast.
    Please provide me some quick pointers.
    Regards,
    Rahul Mohnot

    Hi,
    Not only is it the easiest way, it is the only way to do it as Laurence has put it. As you can see, macro workbooks are created for a Planning Book/Dataview combination.
    Thanks
    Mani

Maybe you are looking for

  • Problems with File I/O

    When my filewriter writes text to a text file, it represents line breaks as a Square character in Notepad. However, the linereader does not recognize these breaks when I'm reading the file into my java program. Is there any way I can avoid this probl

  • ITunes to iPhone... Playlists only? Am I missing something?

    I haven't had my iPhone for -too- long yet but am just getting into putting music on it... it seems the only way to get music to the iPhone is to sync with a Playlist.... ?!? Is this right? I would think I could drag an album, but that doesn't seem t

  • Need logic in abap-hr

    Hi I have a requirement that employee can display,edit,view and confirm his personel data i.e first name,last name.dob etc. Requirement is: need 4 tabs :1 for display data,1 for edit, 1 for review and 1 for confirm. here using bapis for getting data

  • Disable Cmd-Shift-B shortcut

    Hello, In TIGER as well as LEOPARD, how do I disable the Cmd-Shift-B shortcut that launches Bluetooth File Exchange? I had found "Services Manager" for Jaguar PPC but that will not run on my MacBook Pro. I am tired of not being able to type Cmd-Shift

  • What is the file extension .apdetected?

    i suspect a virus, are these flies normal? i do not have an application to open them