Custom code in view

Hi,
I want to write custom code in view to validate business logic before
saving the data. Kindly suggest.
Regards,
Gopal.

Hi,
Generate 1 maintenance view goto SE54 -> Type in the veiw name and select the radio button 'Generated objects' -> Change
Now choose Environment  -> Modification -> Events -> New entries
Add event '01' for Before saving the data into database assign a form name 'F_CHECK_B4_SAVE' and click on editor button
that will open up the FORM write the code in this routine as per the requirement and even set break points to validate the logic.
Hope this helps you.
Thanks & Regards
Ranjith Nambiar

Similar Messages

  • Update Power View reports properties using custom code

    Is there any way to update power view reports uploaded in SharePoint 2013 shared data source link using custom code?
    Best Regards,
    Sameer Salunke
    MCTS-Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.

    Someone out here must have an answer????   I know that SharePoint 2013 saves the view created in Power View therefore the metadata must be accessible somehow?  Can someone explain
    how to find that metadata in the SQL tables maybe?  I would be surprised to find out I am the only one who needs this?
    Ken Craig

  • Custom code for Multi-org - Use x_all tables or views with set_client_info?

    Trying to determine what is normal for custom sql and plsql within 11i. I am trying to find out what other 11i installations are using in regards to custom code. Are you using the all tables or using the views utilizing setclient_info. Any feedback would be appreciated.
    Note: We have converted to multi-org and are setup as a single organization.
    Thanks, Ira

    Hi,
    Using views or table are depend upon the requirement of clinets and implementation.
    If one need to access multiple tables, its always good to have a view and access that... else its same to access view or table...
    Thanks
    Yogi

  • How to control or manipulate a report parameter through SSRS Custom Code

    Hi,
    In reporting services 2005 or 2008, is it possible to control the parameters inside the custom code of a report?
    for example:
    Let's say I have a parameter that displays the following value:
    Red
    Green
    Blue
    In typical scenario I can select one of the values or I can select all of the values then click the View Report button in reporting services.
    I know that this approach is much easier to do if I have an external application like ASP.Net and from there I'll just add report viewer and control the parameters to be passed and then generate the report.
    In the report I added text box that will serve as a hyperlink to refresh report:
    In the Text Box Properties\Action tab. Is it possible to control the selection of values through a custom code(SSRS Custom Code) then the report will be automatically refreshed?
    thanks,
    Joefer

    Not sure about doing a multiple selection. But you can pop up an input box to get the input on the fly.
    Add the below custom code and expression for the above parameter
    Public function Getparamvalue() AS STRING
    Dim x as STRING
    x = InputBox("Enter Red / Blue / Green")
    Return(x)
    End function
    =Code.Getparamvalue()

  • F-32 for one time customer code

    Hi,
    This is related with F-32 cusomer open item processing. It involves some of these document type....billing type RV , DA i.e. credit memo and many other. After processing open item if debit credit matches with differnce zero system easily post the clearing doc. But when there is difference system passes one document for balance amount. like if more of RV billing doc it will show receivable or vice cersa more of DA type doc it will show advance received right?
    Normally System automatically post document for this differnce figure. Document type AB i.e. now my customer will have open item with AB document type till next clearing. However in case of one time customer sytem simulates the documet. Pass first line item with document type AB for differntial amount but shows error 'correct first line litem before posting. '
    When i open that line item, it shows business partner data i.e. customer adress is blank and if you filled up that system allows to post.
    As per my analysis when i tried to do F-32 for other than one time customer code system flows this address (If more of RV
    balance then from RB Billing Type or advance received i.e. more of DA type then that corrosponding document.) But in case of one time customer code we do not maintain master and therefore systm can not find out that adress deatils and ask for it before posting docuemnt. This is as per logic and correctly understandable.
    But i want to know is there any other way or config through which system can automatically pick that adress data in case of AB document type for one time customer code?
    Kindly note that it happens only with one time customer code and all other customer codes are doing perfect.
    Kindly share your views.
    Regtards,
    Aks
    Edited by: Akshatavyas on Nov 24, 2011 12:04 PM

    Hi,
    Thanks for your response.
    But tell me one thing even adjustment document posting (doc type AB) system consider it as second transaction?
    I feel one thing strange that my users never found such problem earlier.
    I told them to find out any such scenario where system posted AB document for one time customer code.
    If not then being this is first time case can be accept.
    Secondly if volume is less then i don't think any abap development is required.
    Bcaz anywez we can manually enter those customer address data for AB document type.
    Regards,
    AKS

  • Using custom code in SSRS PDF rendering

    Hi,
    I have a written some custom code ( a simple function to maintain a counter ) in SSRS Report properties.
    Everything works fine when I render the report in Report Viewer, but the custom code is not recognized when I render the report to PDF.
    What is wrong with my code?
    There is no error reported. The custom code is just getting skipped when I render to PDF.
    My custom code is as follows..
    Public Shared Dim iCounter AS Integer = 1
    Public Function IncrementCounter(SomeValue As Boolean) As Boolean
    iCounter = iCounter + 1
    Return SomeValue
    End Function
    Public Function GetCounter() As Integer
    Return iCounter
    End Function
    and my call to the custom code is..
    =code.GetCounter()

    Hi ha_emp,
    From your description, it seems that custom code work well when you preview the report. While it would be skipped when the report is exported to PDF. After testing the custom code in my environment,I find that the custom code will run again when exporting
    the report, so when we run the report on Report Server and export it to PDF, the custom code will be run twice, the value will be counted twice.
    Based on my research, I find that we can delete the “Shared” in the first row of the custom code to fix this issue. Then the custom code will works well on Report Server.
    If there are any misunderstanding, please elaborate the issue for further investigation.
    Thanks, 
    Katherine Xiong
    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.

  • Strange problem with NWDS - Custom code vanishes!

    Hi all:
    I am very much new to SAP NWDS world. I have got background in core Java coding and now trying to pick up the Java WebDynpro for which I am practising some examples in SAP NWDS.
    I have got a Java WebDynpro application with 2 views. In the implementation tab of one view I am trying to put in some custom code for the function  :
    public void wdDoInit()
        //@@begin wdDoInit()
        //@@end
    However after I hit the Save all metadata button, the custom code vanishes and the function wdDoInit() goes back to the initial form ( shown above ). As a result I cant save the custom code.
    Any help with this issue?
    Cheers!
    Thanks
    Anindya

    Yes that's what  I thought. But couldn't really find any forum on WebDynpro Java. So I put it in the NetWeaver Platform forum!
    Thanks and regards,
    Anindya

  • Can we call custom functions in view objects?

    Can we call custom functions in view objects?these custom functions are from my backing bean...
    Please help.....

    User,
    You can certainly add code to your view objects to do whatever you like.
    However, it would be considered a very bad practice to call something in the backing bean from your view object. It violates the whole MVC design principle of ADF.
    Perhaps if you can share your real use case, someone will give you ideas about the best way to do it, but I, for one, would advise you to forget about calling a backing bean function from your view object.
    Best,
    John

  • T.Code for viewing list of customers of particular account group - Reg

    Hi,
    Can anyone suggest me T.code to view list of customer of particular account group?
    IS there any other method to view the list of customers in a particular account group?
    Please, it is an urgent requirement.
    Rewards sure
    Regards,
    SP.Balaji
    Message was edited by:
            balaji soundarapandian

    Hi Sai Srinivas,
    Already solved it and thanx for your help
    Regards,
    S.P.Balaji

  • Path/T-code - to view the clearing document

    What is the Path/ T-code to view the A/R customer account to view the clearing document (I have FI document number)
    I just want to review the postings and understand the posting.
    Thanks.

    Can be done in multiple ways.
    As you have the FI doc. no., you can use FB03.
    (ii) Execute FBL5N, enter customer number, company code, choose 'cleared items' checkbox, enter clearing date and execute.  Then double-click on the clearing document number.

  • IC_BASE, Page Fragments : root_content.htm adding custom code in standard .htm

    Hi All,
    I am adding custom code in Page Fragments : root_content.htm of bsp application : IC_BASE, for particular business purpose but after activating
    its asking to select page fragments. here its showing IC_BASE and etc.. could you pls guide me how to check which page fragment for this
    root_content.htm. and also i am adding custom code in mail.htm under page with flow logic of same bsp application. so here i am assuming page
    fragment is IC_BASE.
    Jimmi.

    Hi Jimmi,
    In General if you want to modify standard BSP component, you need to enhance the component first and then you need to enhance the particular view you want to modify. You can directly modify the .htm page in view after enhancement.
    Regards,
    Dharmakasi.

  • Need Help with Cue Points/Custome Code

    So I've figured out that videos with a playback component need cue points in order to set up all the interactivity I want to use. The only way to make animated graphics, interactive graphs and text is to apparently create custom code, which I no zip about.
    Should I hire someone to do that for me? I was thinking elance, but does anyone have any suggestions on how to make an interactive video other ways (or cheaper)ways.
    p.s
    how much do you think I should charge for that:)?

    My advice... start with a very simple "proof of concept" project before you attempt the entire package.
    It will be much easier to scale up if you first have a very good understanding of what's going on.
    So one simple video with just one cuepoint and only one button and additional display. You'll also have to work out the interaction of pausing the video when a cuepoint is reached or button pushed to display the graph, giving the viewer time to read the graph... then when the viewer closes the graph, the video should "resume".
    Start very simple and build on that only after you understand the fundamentals.
    Second, you mention "video reports"... plural. So that most likely means that you will need a video player with a "playlist".
    This may mean that you'll need to learn to use a little .xml to bring in the playlist data. You may also find xml an excellant way to bring other data into you project.
    At the link listed above there is an excellant tutorial on "Integrating Flash and XML"
    "Flash and XML"
    "XML Video Playlist"
    "ActionScript 3 XML Basics"
    "ActionScript 3 Advanced XML"
    Personally I would not even begin a project like this without considering how I could use xml to feed data into the project.
    Here's an example of a video player I created that has a playlist, thumbnails, categories, transcipts, "Now Playing" etc. All that data comes into the main .swf via various xml files. Super good way in input data into Flash.
    http://www.drheimer.com/video/
    Yours is a rather ambitious project and will take awhile to gain the skill and assemble the pieces. So when you come to a new part... first create a real simple "proof of concept" model so you can learn how that section works. Don't expect to be able to assemble the entire project all at once.
    Best wishes,
    Adninjastrator

  • Transaction code to view process orders set for deletion

    Hi PP Gurus
    We are trying to search for transaction code to view the process orders which have status as DLFL i.e deletion flag  set for the orders. In cooispi, the deleted orders are not shown in the report output.
    I request you to let me know if there is any other code through which we can view deleted process orders.
    Thanks & Regards
    Harleen Kaur

    Dear,
    In COOISPI  put DLT in system status field and execute the report this will give you the list of all order with deletion flags
    Also refer this thread,
    COOIS Report for Production orders with status DLFL
    Regards,
    R.Brahmankar
    Edited by: R Brahmankar on May 6, 2009 11:16 AM

  • SSRS custom code for count in Report Footer

    Hi All,
    Please help me with the custom code used for below requirement
    Debtor Name     current    30+days   60+days    90+days
    aaa                       7000        0.00          0.00          10.00
    bbb                       5000        0.00         20.99         3.00
    ccc                        1000       0.00          0.00           0.00
    Expected result in report footer :                  
                                              0                1            
       2
    if  the value of  30+ , 60+ and 90+ columns  >=1 then i have to display the count in Report footer,for that i have tried using a custom code like below :
    Shared Dim OD As Integer=0
    Public Shared Function Test(ByVal OP As Decimal) As Integer
            If OP >= 1 Then
                OD = OD + 1
            Else
                OD = OD
            End If
            Return OD
       End Function
    and using below code to display
    Code.Test(Overdue)  
    but when i use this code in report footer is not displaying correct value.Please guide me where i am going wrong.
    Please let me know if you need any other details.
    Thanks in advance,
    Samhith.

    Hi Samhith,
    Per my understanding you what to count the rows which values >=1 and display them at the bottom of the table, you are trying to use the custom code to do this but failed, right?
    I have tested in my local environment and find the custom code is not correctly, and I have an alternative method which is more easy and can work in both table  and matrix.
    As Vaibhav Chaudhari also mentioned that we can use the CountDistinct function, but more correctly, we can use the count() function and the RunningValue() function, because CountDistict will not count the duplicated values if they >=1.
    Please find the expression as below:
    =Count(IIf(Fields!Yourfield.Value>=1 , Fields!Yourfield.Value, Nothing))
    OR:
    =RunningValue(IIf(Fields!Yourfield.Value>=1 , 1, Nothing),Sum,"DataSetName")
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu

  • T-Code to view SAP Document no.

    Dear,
    Need a T-code to view SAP Document number created while SAP Stock Creation.
    After creation through MB1C a number is generated & i need to know what is the process to get this Document Number.
    Thanks in Advance.

    hi,
    You can check MSEG table to get numbers..
    Or USe MB51 to get list of material document as per your selections on the initial screen...
    Regards
    Priyanka.P

Maybe you are looking for