Thread for routines scenarios-

Hello guys,
We are a couple of BI starters without project experience. We read some documents about where to use ABAP in BI  and how to use.We want to implement them in our sandbox but donot know anything about how the requirement will be.
So we thought of starting a thread here so that people who have got project experience will post in this thread ,where they have used ABAP in their projects or which client requirement made you use ABAP.
I am sure many of BI starters will like to learn from this thread.
Thanks,
Rgds,
S

Hi,
Scenario 1: Reporting Level
There is Material which is having Manufature Date and Expiry Date.My client wants the no.of Daya between Manufature Date and Expiry Date.So for this we have created customer exit variable and written a code to clacute the no.of.Days.Code written in CMOD ( ABAP Code) in BI.
Scenario 2:  Start Routine
Trnaformation Level
Program Name:      Start Routine of Update Rule 2LIS_04_P_MATNR                    
Data Declaration
  DATA:i_ZPPLANT_ATT
         like /BI0/PPLANT occurs 0
           with header line,
       i_ZPSALESORG_ATT
         like /BI0/PSALESORG occurs 0
           with header line.
Remove content of DataSet
  refresh: i_ZPPLANT_ATT,
           i_ZPSALESORG_ATT.
Selection of Data Package Attributes
  SELECT PLANT SALESORG OBJVERS
    FROM /BI0/PPLANT
  INTO CORRESPONDING FIELDS OF
    TABLE i_ZPPLANT_ATT.
  SELECT SALESORG COMP_CODE OBJVERS
    FROM /BI0/PSALESORG
  INTO CORRESPONDING FIELDS OF
    TABLE i_ZPSALESORG_ATT.
  LOOP AT DATA_PACKAGE.
    CLEAR i_ZPPLANT_ATT.
    CLEAR i_ZPSALESORG_ATT.
  Retrieval of Company Code using Plant Attributes
    READ TABLE i_ZPPLANT_ATT WITH KEY
               PLANT = DATA_PACKAGE-PLANT
               OBJVERS = 'A'.
    READ TABLE i_ZPSALESORG_ATT WITH KEY
               SALESORG = i_ZPPLANT_ATT-SALESORG
               OBJVERS = 'A'.
    DATA_PACKAGE-COMP_CODE = i_ZPSALESORG_ATT-COMP_CODE.
    DATA_PACKAGE-/BIC/ZCMPSCRAP = DATA_PACKAGE-/BIC/ZCMPSCRAP / 100.
    Modify DATA_PACKAGE TRANSPORTING
        /BIC/ZCMPSCRAP
        COMP_CODE.
  ENDLOOP.
if abort is not equal zero, the update process will be canceled
ABORT = 0.
Threads for Routines:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/609eea32-455e-2c10-c08a-c23adf8c934e?QuickLink=index&overridelayout=true
Transformation in SAP BI 7.0 routine
Regards
Ram.
Edited by: Ramakanth Deepak Gandepalli on Dec 28, 2009 6:20 AM

Similar Messages

  • Which respoitories to use? please see the thread for the scenario!

    Hello Guru's,
    I want to use KM Repositories instead of using the Content Repository which we create in Backend system using OAC0 T.Code.
    The requirement is to store employee photos so that can be linked to Image Container used in Who's Who application of ESS.
    http://www.sd-solutions.com/documents/SDS_Employee_Photos_v4.7.html
    I went through the above link but want to use KM Repository instead.
    Please provide me inputs of what kind of repositories exist in KM and what for those repositories are used and which one to use in our scenario.
    I went through all the help docs, would appreciate if anyone can send step by step config of how to use and which one to use.
    Any inputs are appreciated.
    Thanks in advance for your time.
    Pramod

    HI
    The requirement is to store employee photos so that can be linked to Image Container used in Who's Who application of ESS.
    if u want to make your task simple just use default documents repository a type of cm repository as also said by prem.
    Regards,
    Vijay.

  • Need pdf file links for different scenarios

    Hi folks,
    I am new to PI.Please can any body provide me pdf file links for different scenarios like   File to File, File to JDBC,JDBC to File,File to RFC, RFC to File, File to IDOC, IDOC to File, Http to RFC, Web services to RFC, File to Mail,ABAP to ABAP proxy and  Java Proxies to JDBC.
    Thanks in advance.
    SAP XI/PI Moderator ****************
    Very Simple. Search SDN.
    Thread Locked.
    SAP XI/PI Moderator ****************
    Edited by: Aashish Sinha on Feb 21, 2012 1:36 PM

    hi chandra, do you have the pdf file for fi-ca configuration

  • Hi pls give me any one update routine, transfer routine scenarios

    hi pls give me any one update routine, transfer routine scenarios for to telling interviews (easy scenario for interviews)

    Hi Venkat,
    Pls chk this nice paper:
    How To… Routines within Transformations
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6090a621-c170-2910-c1ab-d9203321ee19
    Pls chk this links for samples & Examples:
    http://help.sap.com/saphelp_nw04s/helpdata/en/e3/732c42be6fde2ce10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/c3963dfbde4dede10000000a422035/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/bcdb7801344defe10000000a422035/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/bcdc6001344defe10000000a422035/frameset.htm
    Hope this helps,
    Regards
    CSM Reddy

  • Oracle features available for this scenario

    What is the best methos for replcating oracle database from a production database with every 15 min interval..
    what are the oracle features available for this scenario
    Thanks
    Shiju

    orashiju wrote:
    What is the best methos for replcating oracle database from a production database with every 15 min interval..
    what are the oracle features available for this scenario
    Thanks
    ShijuIs there any specific reason to open a new thread for the same discussion that you have started here,
    Please suggest a suitable method
    Aman....

  • I get two message threads for one contact. One for sms and one for iMessage since I updated to iOS 7. How can I get them both into one thread?

    Ever since I upgraded to iOS7 just two of my contacts I get two message threads for them. One containing their iMessages to me and the other with just regular sms messages. In Contacs, their email and phone number are saved under one name. How can I get the iMessages and sms to come through under one thread in my messaging app again?

    I am having this trouble also, my partner creates a new message to send to me, or sends a picture and it always comes through as an MMS and not using iMessage ...
    will try deleting everything and starting again!

  • Error encountered while signing. Windows cryptographic service provider reported an error. Object not found. Error code:2148073489. Windows 7, Adobe Reader XI, Symantec PKI, Smart Card and CAC. I have seen other threads for this error but none have a reso

    Error encountered while signing. Windows cryptographic service provider reported an error. Object not found. Error code:2148073489. Windows 7, Adobe Reader XI, Symantec PKI, Smart Card and CAC. I have seen other threads for this error but none have a resolution. Any help would be appreciated.
    Sorry for the long title, first time poster here.

    This thread is pretty old, are you still having this issue?

  • URGENT: How to find out the Tables for Routines  in BW.

    Hi BW Gurus,
    How to find out the Tables for Routines  in BW.
    I have this routine id <b>45XFAEI7LKIFIRDUKQG127YWW</b> and it is in inactive state and i want to activate it.
    thanks in advance,
    points will be rewarded.
    Regards,
    Maruthi.

    Hi Maruthi,
    Check table RSUPDROUT using the routine id as input for the field CODEID. You will get the technical name of the update rule.
    Cheers,
    Praveen.

  • MIRO MIGO ENHANCEMENT FOR INDIAN SCENARIO - IMPORTS PURCHASE ORDERS

    ENHANCEMENT IN THE MIRO ACTIVITY. IN INDIA YOU HAVE TO POST 7 CUSTOMS CONDITIONS FOR EACH ITEM. MIRO ACTIVITY IS COMPLETELY MANUAL. ALL THE 7 VALUES, QUANTITIES FOR 7 CONDITIONS ARE TO BE ENTERED. CAN THIS BE IMPROVED TO HANDLE IN A BETTER WAY.
    MIGO ACTIVITY FOR MANUFACTURING SCENARIO THE EXCISE VALUES ARE SET OFF WHICH ARE RETRIEVED BUT FOR TRADING SCENARIO WHERE THE EXCISE CONDITIONS ARE CUSTOMISED [ZCV1, ZEC1, ZEC2, ZAD1] TO LOAD ON INVENTORY THE EXCISE VALUES ARE TO BE ENTERED. CAN THIS ACTIVITY BE ENHANCED SO THAT THESE VALUES COME DIRECTLY FROM THE MIRO FOR DUTY POSTINGS WHERE ALL THE VALUES ARE ENTERED
    BEST REGARDS
    PANKAJ

    Hi,
    In a normal import process, before the goods receipt, you are making invoice verification for Customs using MIRO and using Planned delivery costs as an option.
    As the goods receipts doesn't exist, system is not proposing Customs conditions
    As the goods receipts quantity is unknown and there always a possibility of partial invoice verification for the customs, system will not directly populate the values in MIRO.
    Doing enhancements to populate this values may not be needed. Pls convince the user on the import process.
    Any other option available for that, really dont know
    Thanks

  • Sender Communication Channel for Integration Scenario IDoc - XI - IDoc?

    Hello All,
    One general question. I have to configure an IDoc - XI - IDoc Scenario. For this Scenario I have to configure an Receiver Communication Channel (IDoc Adapter) to the Backend System but what about Sending Communication Channel for the Sending R/3 system.
    Is the (IDoc) Communication Channel from Sending system to XI required to configured?
    Many thanks in advanced!
    Jochen

    Hi Jochen,
    for sending IDOCs from SAP to XI, sender IDOC adapter is not required. when XI will send the IDOC to a SAP system, then receiver IDOC adapter is needed.
    Thanks,
    Rajeev Gupta

  • How can i set different number of iterations for different scenario profiles that we add to "AutoPilot" in load testing of OATS

    Hi,
    I have few set of load test scenarios, I would like to add each of these test scenarios to "AutoPilot" and run each different scenario profile at different number of iterations.
    As in Oracle Load Testing the "Set Up AutoPilot" tab I see  a section like this "Iterations played by each user: ", which says run these many iterations for every virtual user of all profile added under "Submitted Profile Scenario". So is there any thing like that to set different iterations for every scenario profile added in Autopilot.
    Thanks in advance

    It's not a built-in feature to override a page's styles on a tab-by-tab or site-by-site basis, but perhaps someone has created an add-on for this?
    It also is possible to create style rules for particular sites and to apply them using either a userContent.css file or the Stylish extension. The Greasemonkey extension allows you to use JavaScript on a site-by-site basis, which provides further opportunity for customization. But these would take time and lots of testing to develop and perfect (and perfection might not be possible)...
    Regarding size, does the zoom feature help solve that part? In case you aren't familiar with the keyboard and mouse shortcuts for quickly changing the zoom level on a page, this article might be useful: [[Font size and zoom - increase the size of web pages]].

  • SAP PI conceptual best practice for synchronous scenarios

    Hi,
    <br /><br />Apologies for the length of this post but I'm sure this is an area most of you have thought about in your journey with SAP PI.
    <br /><br />We have recently upgraded our SAP PI system from 7.0 to 7.1 and I'd like to document  best practice guidelines for our internal development team to follow.
    I'd be grateful for any feedback related to my thoughts below which may help to consolidate my knowledge to date.
    <br /><br />Prior to the upgrade we have implemented a number of synchronous and asynchronous scenarios using SAP PI as the hub at runtime using the Integration Directory configuration.
    No interfaces to date are exposes directly from our backend systems using transaction SOAMANAGER.
    <br /><br />Our asynchronous scenarios operate through the SAP PI hub at runtime which builds in resilience and harnesses the benefits of the queue-based approach.
    <br /><br />My queries relate to the implementation of synchronous scenarios where there is no mapping or routing requirement.  Perhaps it's best that I outline my experience/thoughts on the 3 options and summarise my queries/concerns that people may be able to advise upon afterwards.
    <br /><br />1) Use SAP PI Integration Directory.  I appreciate going through SAP PI at runtime is not necessary and adds latency to the process but the monitoring capability in transaction SXMB_MONI provide full access for audit purposes and we have implemented alerting running hourly so all process errors are raised and we handle accordingly.  In our SAP PI Production system we have a full record of sync messages recorded while these don't show in the backend system as we don't have propogation turned on.  When we first looked at this, the reduction in speed seemed to be outweighed by the quality of the monitoring/alerting given none of the processes are particularly intensive and don't require instant responses.  We have some inbound interfaces called by two sender systems so we have the overhead of maintaing the Integration Repository/Directory design/configuration twice for these systems but the nice thing is SXMB_MONI shows which system sent the message.  Extra work but seemingly for improved visibility of the process.  I'm not suggesting this is the correct long term approach but states where we are currently.
    <br /><br />2) Use the Advanced Adapter Engine.  I've heard mixed reviews about this functionaslity, there areh obvious improvements in speed by avoiding the ABAP stack on the SAP PI server at runtime, but some people have complained about the lack of SXMB_MONI support.  I don't know if this is still the case as we're at SAP PI 7.1 EHP1 but I plan to test and evaluate once Basis have set up the pre-requisite RFC etc. 
    <br /><br />3) Use the backend system's SOAP runtime and SOAMANAGER.  Using this option I can still model inbound interfaces in SAP PI but expose these using transaction SOAMANAGER in the backend ABAP system.  [I would have tested out the direct P2P connection option but our backend systems are still at Netweaver 7.0 and this option is not supported until 7.1 so that's out for now.]  The clear benefits of exposing the service directly from the backend system is obviously performance which in some of our planned processes would be desirable.  My understanding is that the logging/tracing options in SOAMANAGER have to be switched on while you investigate so there is no automatic recording of interface detail for retrospective review. 
    <br /><br />Queries:
    <br /><br />I have the feeling that there is no clear cut answer to which of the options you select from above but the decision should be based upon the requirements.
    <br /><br />I'm curious to understand SAPs intention with these options  -
    <br /><br />- For synchronous scenarios is it assumed that the client should always handle errors therefore the lack of monitoring should be less of a concern and option 3 desirable when no mapping/routing is required? 
    <br /><br />- Not only does option 3 offer the best performance, but the generated WSDL is ready once built for any further system to implement thereby offering the maximum benefit of SOA, therefore should we always use option 3 whenever possible?
    <br /><br />- Is it intended that the AAE runtime should be used when available but only for asynchronous scenarios or those requiring SAP PI functionality like mapping/routing otherwise customers should use option 3?  I accept there are some areas of functionality not yet supported with the AAE so that would be another factor.
    <br /><br />Thanks for any advice, it is much appreciated.
    <br /><br />Alan
    Edited by: Alan Cecchini on Aug 19, 2010 11:48 AM
    Edited by: Alan Cecchini on Aug 19, 2010 11:50 AM
    Edited by: Alan Cecchini on Aug 20, 2010 12:11 PM

    Hi Aaron,
    I was hoping for a better more concrete answer to my questions.
    I've had discussion with a number of experienced SAP developers and read many articles.
    There is no definitive paper that sets out the best approach here but I have gleaned the following key points:
    - Make interfaces asynchronous whenever possible to reduce system dependencies and improve the user experience (e.g. by eliminating wait times when they are not essential, such as by sending them an email with confirmation details rather than waiting for the server to respond)
    - It is the responsibility of the client to handle errors in synchronous scenarios hence monitoring lost through P-P services compared to the details information in transaction SXMB_MONI for PI services is not such a big issue.  You can always turn on monitoring in SOAMANAGER to trace errors if need be.
    - Choice of integration technique varies considerably by release level (for PI and Netweaver) so system landscape will be a significant factor.  For example, we have some systems on Netweaver 7.0 and other on 7.1.  As you need 7.1 for direction connection PI services we'd rather wait until all systems are at the higher level than have mixed usage in our landscape - it is already complex enough.
    - We've not tried the AAE option in a Production scenarios yet but this is only really important for high volume interfaces, something that is not a concern at the moment.  Obviously cumulative performance may be an issue in time so we plan to start looking at AAE soon.
    Hope these comments may be useful.
    Alan

  • Suggestions thread for ABAP FAQ sticky

    See these threads for "online collections" in the ABAP Development forums =>
    FAQ's, intros and memorable discussions in the ABAP General Forum
    FAQ's, intros and memorable discussions in the ABAP Data Dictionary Forum
    FAQ's, intros and memorable discussions in the ABAP UI Programming Forum
    FAQ's, intros and memorable discussions in the ABAP Form Printing Forum
    FAQ's, intros and memorable discussions in the Enhancements & Modifications
    FAQ's, intros and memorable discussions in the Performance and Tuning Forum
    FAQ's, intros and memorable discussions in the Data Transfers Forum
    FAQ's, intros and memorable discussions in the ABAP Objects Forum
    Edited by: Julius Bussche on Apr 21, 2009 5:22 PM

    ABAP General
    Subtotals in alv list.   => Subtotals in ALV    <= Added and moved to UI programming
    Can we modify a sub-total in ALV => Subtotals text in ALV /Modification of Subtotals in ALV   <= Moved down to new thread.
    cl_salv_table - Save Layout =>  ALV OM Save layout option <= Moved down to new thread.
    Report with page break.   => ALV Report with page break. <= Moved down to new thread.
    ALV Sorting Not Working after Adding Checkbox to ALV => ALV Sorting and Group Functionality working with Checkbox <= Moved down to new thread.
    Calculating Total with Checkbox in ALV Grid => Calculating Total with Checkbox in ALV Grid  <= Moved down to new thread.
    DUMP WHILE SUMMATION IN ALV  => General Fieldcatalog error.  <= Moved down to new thread.
    Problems with REUSE_ALV_FIELDCATALOG_MERGE =>Problems with REUSE_ALV_FIELDCATALOG_MERGE   <= Moved down to new thread.
    Must i_structure_name for LVC_FIELDCATALOG_MERGE be pre-defined in dict?   => Converting SLIS fieldcatalog to LVC fieldcatalog  <= Moved down to new thread.
    Capture Checkbox Value in ALV Grid   => Capturing the editable fields values in ALV   <= Moved down to new thread.
    how to refresh table display using slis and 'reuse_alv_grid_display method. => Refreshing the ALV Display  <= Moved down to new thread.
    fetch data in edittable field in alv using REUSE_ALV_GRID_DISPLAY_LVC FM => Reading the editable values for ALV LVC function  <= Moved down to new thread.
    Radibutton in ALV Report output => Radio buttons in ALV report  <= Moved down to new thread.
    Edit rows in ALV => Usage of Styles in ALV for disable/enable input option  <= Moved down to new thread.
    how to copy/delete file => executing Unix commands <= Hmmm... c-calling the 'system' does not work in my systems during normal operations. See system param 'rdisp/call_system' which can be disabled, then the code dumps. Is there a different thread with DATASET commands? SXPG?
    express CR_LF => ABAP char Utilities CR_LF use , replace '##' in a application server <= Ahhh yes, I remember this series. This is one of the nicer threads from it... Added.
    String Operations which contain the special character '#' in BDC Session => ABAP char Utilities Horizontal_tab use , replace '#' in application server file <= Sufficiently covered by the next thread.
    Problem with statement "find all occurences of ..." => ABAP char utilites Newline, replace '#' in application server in end of line <= Added.
    How to Send Email to Outlook? =>sending mails to outlook <= Added.
    FM for uploading Image to SAP => upload image to mime repository <= Added.
    Passing an Internal Table to a Report executed through 'Submit' => use of Import and export refer Rich Heilman's code  <= Added.
    Create a parameter to enter a password => Selection parameter password behaviour  <= Added.
    ABAP Dictionary
    =>
    Form Printing
    Exporting Graphics from SAP =>Download Logo from SE78 <= Okay, added... but the thread is rather old and ws_download is obsolete now, isn't it?
    BDC for SE78 Transaction  => Upload Logo programatically <= Hmmm... external performs and guests. I would like more opinions on this one before adding.
    UI Programming
    [Top of page in OO ALV|TOP_OF_PAGE in ALV  Using CL_GUI_ALV_GRID ]=> Top of page in OO ALV <= I understand that this blog was very helpfull, but it is full of email addresses. Hmmm.. tough call Is there another example (thread) without any "here is my mail address" comments. We want to avoid those.
    [Top of page Alignments in Normal ALV|Alignment of  Data in TOP-OF-PAGE in ALV GRID] =>  Top of page in normal ALV <= this is more wiki material in a blog, but again often asked... Hmm.. lets go through the others first and come back to this one.
    To display URL as a hyperlink (along with simple text) in dialog program   => URL display using HTML Viewer  <= Added.
    select-option on dynpro => Select-options usage in Module pool programming  <= Added.
    New! =>
    Enhancements and Modifications
    =>
    ABAP Performance and Tuning
    =>
    Data Transfers
    =>
    ABAP Objects
    =>
    Edited by: Julius Bussche on Oct 3, 2008 10:31 PM
    Edited by: Julius Bussche on Oct 3, 2008 10:34 PM
    Edited by: Julius Bussche on Oct 3, 2008 10:38 PM
    Edited by: Julius Bussche on Oct 3, 2008 10:43 PM
    Edited by: Julius Bussche on Oct 3, 2008 10:55 PM
    Edited by: Julius Bussche on Oct 4, 2008 12:06 AM
    Edited by: Julius Bussche on Oct 4, 2008 12:40 AM
    Edited by: Julius Bussche on Oct 4, 2008 12:57 AM
    Edited by: Julius Bussche on Oct 4, 2008 1:23 AM
    Edited by: Julius Bussche on Oct 4, 2008 3:27 PM
    Edited by: Julius Bussche on Oct 4, 2008 3:39 PM
    Edited by: Julius Bussche on Oct 4, 2008 5:40 PM
    Edited by: Julius Bussche on Oct 4, 2008 5:59 PM
    Edited by: Julius Bussche on Oct 4, 2008 7:17 PM

  • Can't see messages on sxi_monitor for sync scenario?

    Hi gurus,
    We are using PI 7.11. We found after no operation for ESR or ID for a long time, the system pops up the error "no authorization...", then we have to click esr on pi main page and logon again. Is there any parameter to change the user session or somthing?
    Thanks in advance.

    your subject line seems different to the issue you are having...
    or they could be the same!  have you set the messaging logging for sync scenarios in SXMB_ADM?
    can you explain the actual problem you are having?  it makes no sense.

  • Inspection Lot status not getting changed to LTCA from REL for SubCon scenario

    Dear All,
    For ERSA material 01 inspection type is active with indicator Post to inspection stock only as it can be purchased. No other indicator is set.
    This material can be sent for repairing outside with DAMAGE valuation type (stock provided to Vendor with DAMAGE valuation type).
    For SubCon scenario, Purchase Order with Account Assignment Category F and Item Category L has been created.
    Once GR using MB01 with 101 movement, consumption posting takes place and as Insp type 01 is active Inspection lot is getting created with status REL CALC.
    At this time, DAMAGE stock against Vendor is getting reduced with Qty of 543 movement.
    Now when, reversal 102 with MB01 is done against Purchase Order and details are adopted with reference to 101 material document, reversal is taking place, but at the same time respective material doc's Inspection lot status is not getting changed to LTCA. It remains REL only.
    For 122 return to Vendor using MBRL also, Insp lot status is not getting changed.
    Has anybody faced such issue? Is this standard SAP?
    Kindly throw light on the process, is correct process followed?
    Regards,
    Tanuj Parikh

    Thanks.
    Thru MBST Inspection Lot status changed to LTCA.
    Why system is not cancelling thru MB01? 

Maybe you are looking for

  • Table for Vendor Master Email ID

    Hello, Can you please tell me the table where Vendor Email ID is stored and also how to connect it from LFA1-ADRNR in ECC 6.0? Thanks, Venu

  • Restriction of a document on the material plant views

    Hello everyone, I would like to link a document to a material, but to restrict this link only to the views related to plant level. The document must not be reachable in the views "Basic data 1" and "Basic data 2", but must be reachable in the view QM

  • My retina display mbp is stuck on gray screen during latest update

    . No progress bar. Is this normal, how long does it take to update?

  • Changes in Demand Forecast after its final release.

    Hi We are releasing final forecast of next month in the mid of previous month (e.g. on 15th Jan we will release final forecast of Feb ) to SNP. Then in Feb'09 can we make chhanges in Forecast because in Feb'09 the feild is grey out and also it is not

  • What happen when printing hyper black?

    Hi all Imagine you start a new document...after create any element and fill it using C=100, M=100, Y=100 and K=100. In the Illustrator preferences I have set output blacks accuratelly. So we will have 100% of colors at all the plates in press. Ok..th