How to separate UI logic and applcation logic

Hi,
For better performance i want to separate UI logic that is within PAI event and my application logic that is insert operation.
any good idea?? shall i use function module??
Thanks
Regards,
Virat

Hi,
     The best way to seperate is to WRAP all your business logic into some ABAP objects class or some Function module and then in the PAI call appropriate methods.
Still you will have the method call in the PAI but atleast the business logic is in a seperate component and you can transport it seperatley.
Regards,
Sesh

Similar Messages

  • Validator using logical AND or logical OR

    How can I validate multiple TextInputs using logical AND or
    logical OR. For example:
    If TextInput1 == Null || TextInput2 == Null causes a
    validation error if both are null but passes validation as long as
    one field is populated or both fields are populated.
    John

    You could have a Boolean variable that is initially false,
    and only becomes true when one of the TextInput becomes populated.
    The variable could be set in the TextInput "change" event.
    Your validation code would check the value of that Boolean
    variable.

  • How to separate ims-ms and tcp_local channel

    Since I have serveral domains in one mail store, now we can separate SMTP channel for each domain. But how to separate ims-ms and tcp_local channel for each domain? Now we are on version 6.0 patch 1
    Thanks

    I'm sorry, I don't have a clue what you're looking to do. Often folks ask for a way to do something, without telling us what it is they want to do, and the method requested isn't possible.
    tcp_local is the channel set up for mail to and from the internet. ims-ms is for delivery to the store. They're already separated.
    Please start over, and let me know what your ultimate goal is, and perhaps then, I can help you.
    There is no need to separate anything for separate domains on one mail store. . .

  • Restart logic and looping logic in process flow

    Is there any restart logic and looping logic in Oracle Warehouse Builder, process flow?

    Hi,
    The answer is NO. The curent version does not have restartable functionality. You have to have your own design for this.
    ta
    mahesh

  • How to separate enter GR and return in invoice verification

    Hi: guys
    I have completed GR for purchase order, and then, vendor send me invoice. however, during invoice check, warehouse return goods to this vendor. so I just want enter GR item excluding the new return item. but sap system automatically propose total Qtys/amounts. I cann't manually change Qtys/amounts.
    everybody can tell me how to separate enter GR and return in invoice verification.
    someday suggest me use return PO and 161 movetype to deal with this problem. however, I not think this is a good solution.
    thank you
    Henry

    well the main point of u r problem is that u r not able to change the qyantity /value in invoice
    but system should allow u to change the quantity and vlaue as per standard sap settings
    i think u r user profile is not authorized to do so.........chek the authorization for miro
    u can aslo ue invoice reduction option in miro
    suppose u r vendor invoice u for 100 pc but u have recived only 89 pc as 20 pc u have already returned then u can use invoice reduction option to change the quantity and value and in this case sytem will genrate the credit memo and invoice
    100 pc invoice
    20 pc credit memo
    and ultiamtely u have posted 80 pc invoice
    if any thing not clear then let me know

  • How to Create Primary DB and Physical/Logical Standby DB on the same host?

    Now I encounter a issue. I want to create one Primary DB and one Physical standby DB and one Logical standby DB on the same host.
    Create this env on the same host aims to test whether we can using EM Patching DP to apply patches on Primary/Physical/Logical DB successfully.
    I try to setup this env but fails. I want to know more related issues about create Primary DB /Physical DB/Logical DB on the same host and how to configure between them.
    Below steps is my try:
    1. Create Primary DB on the /scratch/primary_db
    2. Create Physical Db software only on the /scratch/physical_db
    3. Create Logical Db software only on the /scratch/logical_db
    4. Using EM Wizard to create physical standby database and logical standby database, and these two targets can show up on the "All Targets" Page.
    5. But when using EM Patching DP, it fails and the reason is the listener of physical and logical db cannot configured well.
    Issues:
    So I want to know about how to configure physical db and logical db's listener using EM or manually?
    If the listener name of Primary Db is LISTENER and the port is 1521,and the listener.ora is under the /scratch/primary_db/network/admin directory, then how to config physical db and logical db's listener's name and port?

    Hi,
    As this a test case then you need to create two more listener for each Oracle Home (/scratch/physical_db & /scratch/logical_db) make sure that they have different names and ports.
    Then add the new listeners manually using GC?
    Try it and let me know
    Regards
    Amin

  • Logical AND vs logical OR on empty boolean array

    Just satisfying a curiousity...Can anyone tell me the logic behind this behavior (LV 7.1,8.0 and 8.2 do it)?
    Logical AND on empty Bool Array = TRUE
    Logical OR on empty Bool Array = FALSE
    Of course there are very simple ways to work around this, but it doens't make sense. If the OR operator is FALSE for a given data set, how can the AND operator be TRUE?
    Pic for proof.
    Attachments:
    emptyboolarray.JPG ‏41 KB

    vituning wrote:
    ... how can the AND operator be TRUE?
    The reasoning/logic has been discussed a few times in the past
    e.g.  http://forums.ni.com/ni/board/message?board.id=170​&message.id=86827&requireLogin=False
    =====================================================
    Fading out. " ... J. Arthur Rank on gong."

  • How to separate file path and file name

    Hi All,
    Is there any FM which will separate the filepath and filename? I have whole string is like /test/test.txt. I want to separate this to two parts one is  /test/ and another is test.txt. How to achieve this?
    Regards,
    Jeetu

    use this FM - PC_SPLIT_COMPLETE_FILENAME or
    'SO_SPLIT_FILE_AND_PATH
    Regards,
    Amit
    Reward all helpful replies.

  • How to separate the value and currency

    Hi Experts,
    We have data in report like this 12545EUR
                                                       24521DM
    Now our requirement is  separate the value and currency.
    Can anybody tell me what i do in Query designer.
    Thanks in Advance

    Hi
    NODIM is used in a scenario like u want find the amount of product then the formula for the amount is price * quantity
    AMOUNT = PRICE * QUANTITY
    IN this case the unit for PRICE ,let say EUR and for quantity the unit is EA and say we have price value = 10 EUR and quantity value   = 5 EA
    if u apply the above value in the above formula , then it leads to the value as shown below,
    AMOUNT = 10 EUR * 5 EA = 50 EUR EA
    In this case the units for the amount should be EUR not "EUR EA" in this case we have to eliminate the units for PRICE . so that can be done by using the
    amount = /BIC/NI_AMT * NODIM(/BIC/NI_QTY)
                 = 10 EUR       *   5         = 50 EUR
    Hope u got it,
    Revert back in case of any query ,
    Assign points ,
    Thanx & Regads,
    raviChandra

  • How to separate the source and the measured current

    Hi Everybody,
    I'd like to know if there is some way to separate the source and the measured current and just writte an mathematical expression to make a dependence between the source and the said parameter. Thanks in advance.

    Sure,
    Here is the deal:
    I'd like to build a circuit with dependent sources, but instead of connecting the sense of current/voltage, I'd like to know if there is a way to writte a sentence for the source which is dependent of a parameter.
    For example:
    In this circuit I just wrote an expression for the source and its respective parameter. (8*Io).
    Attachments:
    images.jpg ‏7 KB

  • Does anyone know how to separate vocals from instrumentation in logic 9 ?

    Hi, does anybody know how to seperate a vocal line from the instrumentation in logic 9 ? I tried splitting and inverting the audio but I cant get it to work.
    Cheers
    Dan

    Mac or Windows? "Edit In"  PSE9 worked for me creating a 16 bit PSD on my Win 7 machine.

  • How to separate the PRno and PRitem

    hi experts,
                  i m working on stxh table,in this table a field name
    ''Text Name = 001000198700010" IS EXISTING ,here prno and pr item both are attached ,i want to separate both ,what logic sud i use............

    Hi
    First 10 characters are PR number =   0010001987
    next 5 digits are Item no  =  00100
    reward if useful
    regards,
    Anji

  • Flat file having multiple header lines , how to separate the same and pushit into my intrnal table

    Hi Guys,
                    I got an issue , My flat file having multiple header lines
    TPS27RPR  MOME                                      THRIFT (SAVING) PLAN SYSTEM                                           Page    2
    09:54 05 JAN 2014                          List of Contributors w/Company Contributions                           Phase DAY Unit TRE
    Company No: xxxxxxxx - xxxxxxxxxxxxx.
                                                                            Employee/       Employee/
    Employee Full Name/                                                       Company         Company                        Allocation
    Number  ID Number                           PS  PN  End Date        Contribution          Profit        Total Balance   Percentage
    some lines of data and again
    TPS27RPR  MOME                                      THRIFT (SAVING) PLAN SYSTEM                                           Page    2
    09:54 05 JAN 2014                          List of Contributors w/Company Contributions                           Phase DAY Unit TRE
    Company No: xxxxxxxx - xxxxxxxxxxxxx.
                                                                            Employee/       Employee/
    Employee Full Name/                                                       Company         Company                        Allocation
    Number  ID Number                           PS  PN  End Date        Contribution          Profit        Total Balance   Percentage
    in this case how could I separate the header lines from the flat file and update the details to my internal table.
    kindly help me on this issue.
    Thanks and regards,
    M.S.Amirtharajvijay.

    Hi Amirthraj,
    If the flat file is static (if the content within it is same for all) then use the offset concept. First get the contents of the flat file into an internal table and later find the field that has to be in final internal table within the line, calculate the offset for the line and get the value into an workarea. Finally modify/append the work area into an internal table. Also wait for other experts answers for any other hassle free way to achieve the requirement.
    With Regards,
    Giriesh M

  • How to separate different views and parts of a single line of business(LOB) universal app for windows 8.1 with many users.

    Hello am an intermediate Windows Phone/Store Developer. Am currently in the process of implementing a LOB app that will have three different types users, an admin, a student, a teacher . Depending on how a user logs in i would like certain pages to be exposed
    to them and the rest to be hidden. The app will also store data temporally on a local db then sync regularly to an azure database(Can the recent entity framework 7 that supports store/phone apps allow code first databases or are there features still not fully
    accessible in WinRT apps)...This i believe can handle but also kindly point me out to existing implemented resources/examples i will appreciate very much.
    What am finding problematic is how to consume different app data stored by various users logged in for these different views. Will i need an asp web api is it really necessary cause i want to avoid it cause i have about three months to do it. I do not want
    to create three different apps and one ASP Web AP,  i want one single app and an api if possible, i know windows usually sandboxes apps hence app to app communication will be hard if not impossible. So my question is, is it possible to implement different
    user session management with a login (Windows Live ID) which i can abstract various parts of the app from them depending on the users login id in the app. E.g How can an admin logged in the same app as the student have access rights to certain pages in the
    app that a student will not see. How do i route different users to certain pages and can isolated storage store these persisting as a setting.
    How can i know which login id belongs to which of the three users? How do i then assign different access to different controls of the app with their id,provide custom views routes,access right,session management. I think i can do these without an ASP Web
    API is It wise? Building pages in the apps is easy but i want users to see different views of the app instead of one standard app depending on there login id, how can the NAVIGATION URI be used here. How can azure and features like active directory,azure mobile
    services. I know i have repeated the same things over and over and these might be complex for a free advise but as a windows dev these is my one stop shop. Any one with a view on how to approach these kindly show me the best directions. Thanks guys in advance.

    I suggest you have a look at this sample.
    https://code.msdn.microsoft.com/windowsapps/ListView-Interaction-ac044c3c. MainPage provides the framework to hold the content. At runtime, we create the Scenario collections and then bind to control. This approach can help you determine the type of users
    and provide some appropriate pages at runtime.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
    the survey.

  • Separate UI logic and database operation

    Hi,
    For better performance i want to separate UI logic that is within PAI event and my application logic that is insert operation.
    any good idea?? shall i use function module??
    Thanks
    Regards,
    Virat

    Hi,
    There will not any performance issue as such as all the code will be executed by the same Dialog workprocess in the application server.
    But it is alwys good to keep you flow logic and application logic seperated, so flow logic just calls the methods and the methods are in a different component like a static method of a class or function module in a function group.
    Best thing is Function Group as you can have screens in a Function pool.
    Regards,
    Sesh

Maybe you are looking for

  • Acrobat Distiller.app can't be selected when printing to Adobe PDF 9.0

    When trying to print a word 2004 doc to Adobe PDF 9.0 ( using the Adobe PDF 9.0 option from the Printer drop-down list within the print dialog box - I have CS4 Design Premium installed including Acrobat Pro 9) I'm asked to locate my copy of Acrobat D

  • Macbook Pro won't boot OSX after Yosemite upgrade 10.10.3

    I downloaded the update to 10.10.3 this morning before driving my daughter to daycare. When I came back, my Macbook Pro had rebooted into Windows 7 (Boot Camp). I restarted it by telling it to reboot to OSX, but it boots Windows again. If I turn it o

  • Converting SQL to PS Query

    I have this piece of code in an Oracle SQL and I want to convert to PS Query.  Not sure how to do this.  Any help would be greatly appreciated. from ps_audit_ax_names a left join     (select b.emplid, b.effdt, b.name from ps_names b         where b.e

  • Cannot recover Portege R100

    I have some problems with my Portege R100. The HDD was damaged so I bought another one, this one being already formatted . I also have two CD-drives: 1. PCMCIA Card drive Toshiba PX1055E-1NST 2. USB drive Toshiba PA3352U-1CD2 My problem is that the r

  • Latest iTunes update (10.1.2) is buggy

    hi there, is it only on my computer or the latest itunes is buggy? i can't download any app, no initial page, only thing i can see is the right lateral column with quick links, top charts and others. But when the cursor crosses the blank spaces it de