Custom transaction attached to SAP delivered code

HI
We have a requirement that all custom program and transactions are secure. Usually we have the developers add an auth check statement to the program and add that check to the custom t-code in SU24.
today I have the situation that we are using SAP delivered code and attaching a custom transaction. Since we don't want to modify the SAP code, how is it possible to get any check on the transaction? I know that SU24 won't force the check unless the program is changed. So is there any way to have any type of auth object checked? Or is this a situation where no check would be needed and no objects added to the role when the new tcode is added? (SE93?)
Hope that makes sense!
Thanks
Bobbi

Here is where I run into problems. I am not a developer and have a hard time reading the code. This particular report is to display vendor address data. As far as I can tell I do not see anything that appears to be authority checks.
This is the top level of the code:
report AQZZZVEND=======ZVEND_ADDR====.
include /1BCDWB/IQG000000000055DAT.
data %dtab type standard table of /1BCDWB/IQG000000000055 with header line.
data %subrc type sy-subrc.
include /1BCDWB/IQG000000000055SSCR.
include /1BCDWB/IQG000000000055SSCRAT.
start-of-selection.
  if %runmode-extr_on <> space.
    call function '/1BCDWB/IQG000000000055EXTR'
         tables     %selopt = %seloptions
                    %dtab   = %dtab
         changing   %rtmode = %runmode
         exceptions no_data = 1
                    others  = 2.
    %subrc = sy-subrc.
    call function 'RSAQRT_CHECK_EXTR'
         exporting extr_subrc = %subrc
         tables    dtab   = %dtab
         changing  rtmode = %runmode.
  endif.
end-of-selection.
  if %runmode-show_on <> space.
    call function '/1BCDWB/IQG000000000055SHOW'
         tables   %dtab   = %dtab
         changing %rtmode = %runmode.
  endif.
   special code for old API and BW extractor calls
form %set_data changing p_lines type i.
  import ldata to %dtab from memory id 'AQLISTDATA'.
  describe table %dtab lines p_lines.
  free memory id 'AQLISTDATA'.
endform.
form %get_data tables p_dtab  structure %dtab
               using  p_first type i
                      p_last  type i.
  append lines of %dtab from p_first to p_last to p_dtab.
endform.
form %get_ref_to_table using p_lid   type aql_lid
                             p_ref   type ref to data
                             p_subrc type i.
  if p_lid = %iqid-lid.
    create data p_ref like %dtab[].
    p_subrc = 0.
  else.
    p_subrc = 4.
  endif.
endform.
================================================================================================
The abaper doesn't seem to understand what  I am asking of him so I am stuck. It appears this custom transaction will go in without any checks on it unless you can perhaps advise me on how to proceed. Any help is appreciated.

Similar Messages

  • Challenge of the day - "beginner" errors in SAP-delivered transactions

    1.  Read this post here:
    Question on SWUI_SINGLE and SWUI_START
    2.  Name another SAP-delivered transaction that exhibits the same incorrect behavior as SWUI_SINGLE and SWUI_START.
    Note: Assume that the behavior of these transactions at this customer site is not due to an error in system config, but rather to insufficient internal SAP QA/QC.
    If the behavior of SWUI_SINGLE and SWUI_START is not due to a config error at this customer site, these are really remarkable transactions.  I've never seen SAP transactions delivered with such gross "beginner" errors.
    Have you?
    djh

    Hi Stephen -
    How could I teach them "/nex" when I had deliberately forgotten it myself ... I'm the guy you love to hate  when you're standing behind him watching him try to get something done "fast" ... I still go up to the menu bar for copy/paste/cut in Office sometimes ...
    It's my way of being old-fashioned - like the engineers who wouldn't give up their rules for calculators ...
    As far as EEWB goes, well I can see why nobody cares about it ... remember the old saying:
    "Real programmers don't program in wussy languages like LISP ... they program right down to the bare metal" ...
    ... same goes for any tool that has "easy" and "workbench" in it ...
    Just kidding, of course ...
    djh

  • Delete SAP Delivered Services in t-code SOLUTION_MANAGER

    Hello,
    How can I delete the list of SAP Delivered Services in t-code solution_manager?
    Operations -> Service Plan -> SAP Delivered Services.
    I have a list of services 'Ordered by customer' with workbench status 'Initial'. These are not valid anymore and none exist with SAP.
    Cheers

    Hello,
    Firstly you need to figure out how these services were created in the first place.
    To delete sessions you can use the report RDSMOPREDUCEDATA.
    Important:
    For step 3 in the deletion report select: "ALL SESSION TYPES"
    For step 6: make sure that the checkbox is NOT select, so that you can
    get an overview of the sessions before the deletion is processed.
    Incase the Services were created but the corresponding sessions were not created corectly you would not be able to delete the services. The safest way in this case would be to open an Message with SAP for the cleanup.
    If you are an expert in Solution Manager then you can clean up by deleting the entries directly in the tabl DSMOPSERSESSION. However this is NOT an recommended way of doing it.
    If the report does not help then open an message with SAP. Safe and Sure way of getting rid of the sessions.
    Regards
    Amit

  • Program associated with Custom transaction code.

    Hi Guys,
    I was studying two custom transaction code made in my company's SAP System.
    Program associated with one custom transaction was starting with name SAPZMxxx and program associated with other custom transcation code was starting with Z.
    Can anyone tell me whhat is the difference or in other words what is the significance of starting with SAPZM....
    Tushar.

    You can exactly know the kind of program only seeing the program attribute.
    Infact if the program name begin with SAPMZ, you're sure it's a module pool custom, but if it begin with Z* you can't be sure it's a report.
    SAPM is a convention, if you're creating a program called SAPMZ... the system know you want to create a module pool.
    But if you're creating a program called Z... the system can know which kind of program you want to create only after you've indicated the type in the attributes.
    Here you can choose whichever type of program, a module pool too.
    So the name of module pool can begin with SAPMZ or Z.
    Max
    Message was edited by: max bianchi

  • Simple code to send ALV display as XLS attachment  to SAP inbox

    Hi All,
    Simple code to send ALV display as XLS attachment  to SAP inbox.
    Also i need to send only 200 records per attachement. So in this case i need send multiple attachment per mail
    Thanks,
    Lokesh

    The following code is used to send the internal table which u pass fo  the ALV display to be send as excel sheet attachment
    Internal table is it_attach[]
    ld_email               = po_email.
      ld_mtitle              = 'Email From Z377_EMAIL_XLS'.
      ld_format              = 'XLS'.
      ld_attdescription      = 'filename'.
      ld_attfilename         = 'Allot'.
      ld_sender_address      = ' '.
      ld_sender_address_type = ' '.
    * Fill the document data.
      w_doc_data-doc_size = 1.
    * Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    * Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
      ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = it_attach[].
    * Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE li_content LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    * Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    * Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
      EXPORTING
      document_data              = w_doc_data
      put_in_outbox              = 'X'
      sender_address             = ld_sender_address
      sender_address_type        = ld_sender_address_type
      commit_work                = 'X'
    *IMPORTING
    *sent_to_all                = w_sent_all
      TABLES
      packing_list               = t_packing_list
      contents_bin               = t_attachment
      contents_txt               = li_content
      receivers                  = t_receivers
      EXCEPTIONS
      too_many_receivers         = 1
      document_not_sent          = 2
      document_type_not_exist    = 3
      operation_no_authorization = 4
      parameter_error            = 5
      x_error                    = 6
      enqueue_error              = 7
      OTHERS                     = 8.

  • SAP delivered standard BADI for custom extracts in R3

    Hello Friends,
    I sthere any SAP delivered standard BADI that can be implemented for custom extracts in SAP R3.
    Thanks
    Simmi

    Hello
    Please see this
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0ec3252-f21c-2a10-3c8d-b9ef05f839ef
    Page 61
    Thanks
    Chandran

  • Customer Hierarchy details in SAP ERP BP transaction

    Dear All,
    Currently we are using BP transaction in SAP ERP and also using customer hierarchy transaction VDH1N.
    Now the problem is we cannot see customer hierarchy in BP transaction, we have any option that we can create relationship in the BP transaction, however its a double effort.  Is there any option that we can see the Customer Hierarchy details in SAP ERP BP transaction?
    Regards,
    Murali

    Hello Murali,
    With BP transaction, do you mean business partners in XD03 / VD03?
    >> we cannot see customer hierarchy in BP transaction
    No, you can't see the customer hierarchy in XD03. That's correct.
    In XD03 you have sold-to, payers, bill-to and ship-to.
    You also have hierarchy nodes (012).
    In my opinion, the customer hierarchy should only have relations between hierarchy nodes and sold-to(s).
    Therefore these are different information segments => No need to see the hierarchy from the BP transaction.
    Hint: Maybe that is the reason why the functionality is not available in the standard system!

  • Attaching the documents to customer transaction screen

    Hello Experts,
    Greeting of the day!!
    One of my client wants to attached a scan document of received transaction in a Customer transaction screen, Now i m confuse whether this is possible in oracle Applications R12.1.3 or not?
    If yes then please guide me or give any reference??
    Oracle Application : R12.1.3
    Database : Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    Thanks,
    Atul

    Hi Helios,
    I found the solution on oracle application screen itself.
    Oracle Apps already provided the attachement future in the application itself.
    VIEW ----> ATTACHEMENTS.. here we can attach a any type of document for customer transaction or supplier invoice.
    Thanks,
    Atul Ramteke

  • Create custom Transaction code

    BW Experts,
    Can I create a custom transaction (T-CODE) in BW  which will basically bring up a screen to trigger an event which would run a infopackage.
    I need to give user the access to run a infopackage and not to admin workbench. The above is the method I thought about, but do not know if it is possible to do it. I would appreciate any help on this.
    Thanks
    Ashwin

    Aswin,
       It is very much possible. Create an ABAP Program and call the Function Module BP_EVENT_RAISE . Pass your Event to Function Module.
    Go to SE93. Create a Transaction Code by providing Technical Name. You will get a pop up to choose the Transaction Type. Select Program with selection Screen. provide Description and Program Name you created earlier. Save.
    all the best.
    Nagesh Ganisetti.
    Assign Points if it helps.

  • Attachment functionality to custom transaction

    Hi All,
    I need a help in providing attachment functionality to a custom transaction.
    I have build a custom transaction for GL master, the requirement is that i need to provide a attachment functionality to attach a
    documents like in standard trasactions(attaching a documents in Va02). How can i achieve this functionality?
    Is there any class/FM to call?
    Thanks in advance.
    Venu.

    Hi,
    I think you have to use GOS service. Search for GOS. check the below thread or debug the standard transaction, you can find FMs
    A couple of things regarding GOS and ArchiveLink for attaching Business Doc
    Hope this helps u.,
    Thanks & Regards,
    Kiran.

  • Custom Transaction code .... back ground run

    Hi All,
    We have custom transaction ZPRS(Module pool program)... which contains selection screens ..
    usually user run give the values on selectin screens and press submit.. it displays the list of values on table control..
    But user asking instead of table control .. after selection screen input they have run in BACK GROUND.
    Please suggest how to that... I know submit is for executable program,...
    Thanks...
    reddy.

    >
    Dave L wrote:
    > so, a little very basic analysis here....
    The first bit of analysis would include looking at the date of the initial post
    Rob

  • Customizing the sample HTML pages delivered by SAP in Life and Work Events

    Hi All,
    I have released all the process of the LWE and assigned the default roles to the all processes.
    Now I am able to see all the SAP delivered screens perfectly. I wanted to change the all the default HTML and Java Web Dynpro iviews to suite the business requirements.
    I know all Web Dynpro applications needs to be changed from NWDS. But I don't know how to change the HTML pages i have lot of questions like
    1) where can I found their source files for the HTML pages ?
    2) When I checked out the callable object of HTML pages it is showing as 'ESSHTMLContentPackage' where can I found this one ?
    3) how to change them ?  
    4) how can I integrate the changes to the actual ESS LWE screens ?
    5) where do I need to change the HTML pages?  is it in back end SAP system or in portal ?
    6) Do I need to do any other additional configurations in portal and sap system ?
    Any kind of help is highly appreciated ...Thanks a lot.
    regards,
    Seshu.

    Is there a simple way to copy a process and remove a couple of steps? For example, I would like to copy the Benefits process but remove the What's new step (the instructional pages). I would just like the webdynpro calls to remain with no instructional pages.  When I do a copy of the process, I can uncheck the What's new steps along with all of the other instructional pages so that they won't be copied. However, when I don't copy those pieces, the whole benefits process gives errors when you try to access it through the portal.  Any suggestions?

  • Custom Transaction Types, Subject Profiles etc...

    Hi all,
    Did anyone worked on custom Transaction Type on SDCR? 
    I know that this is CRM specific stuff to configure, but want to check what are the implications in modifying exisiting SDCR..  Well, in the meanwhile, we need to work on custom Code Groups, Subject Profiles etc..
    What is the impact on upgrades if we modify the SAP defined Transaction Types SDCR?
    Please correct me if I am wrong in my approach.
    Response is greately appreciated.
    Regards,
    Mike.

    Thanks for response.
    I tried to copy and modify the subject profiles, catalogs etc.  I could able to create Change Request with the custom transaction type, but not able to authorize the change request.  And I am using SAP defined action profile for custom transaction type.
    And also little bit confused how to attach the custom change request to support message (we need to select the action item "create change document").  It seems there are lot of modifications to be done all the way from support message to urgent/normal correction.
    Please advice.
    Regards,
    Mike.

  • Escaping field value in custom transaction

    I have created a custom transaction inserting fields in a table called `billing`. The values are taken mainly from two other tables called `account` and `paypalinfo`. I have attached the code below.
    Please not the values to be inserted notated in wavy brackets like{paypalinfo.txnid}. This means the variable content is replacing what is in between the brackets and the brackets themselves of course at run time. Sine these are often character strings, I have put them into single quotes.
    This worked great until I had an Irish guy acccessing my site with the sirname of O'Hara. That of course confused the statement, as suddenly there was a ' character, which was supposed to be interpreted as string, but was interpreted as SQL field delimiter and thus broke the code.
    Here is my question: Should I escape the value and how would I do it, since this is not a normal code but a placeholder replaced at runtime? Or should I use another SQL field value delimiter, thus replace ' with ` ? I think the latter solution is inferior - just think of what heappens if you get an O`Hara instead of an O'Hara.
    So in essence the question is: How do you handle escaping varabiable content in custom transactions with run time replaced variables in {...} brackets?
    Any feedback welcome.
    Here is the code:
    // Make a custom transaction instance
    $customTransaction2 = new tNG_custom($conn_chilli);
    $tNGs->addTransaction($customTransaction2);
    // Register triggers
    $customTransaction2->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");
    // Set custom transaction SQL
    $customTransaction2->setSQL("INSERT INTO billing (buyer_email, account, affiliate, partner, admin, transid, transdate, buyer_fname, buyer_lname, package, minutesbought, amountpaid, currency, userid, mac, nasid, routermac) values ('{paypalinfo.buyer_email}','{paypalinfo.account}','{account.affiliate}', '{account.partner}', '{account.admin}', '{paypalinfo.txnid}', '".$right_now."', '{paypalinfo.firstname}', '{paypalinfo.lastname}', '{paypalinfo.itemname}', '{package.tavail}', '{paypalinfo.mc_gross}', '{paypalinfo.mc_currency}', '{SESSION.id}', '{paypalinfo.usermac}', '".$router_name."', '{paypalinfo.routermac}')");

    You should never be using anything but:<br /><br />'b string mysql_real_escape_string  ( string $unescaped_string  [, resource $link_identifier  ] )<br /><br />'i http://www.php.net/manual/en/function.mysql-real-escape-string.php<br /><br />The reasons for this is that this are related to SQL injection attacks.  I would hand code this, but for anything more complex than CRUD ( http://en.wikipedia.org/wiki/Create,_read,_update_and_delete ) (which ADDT handles very nicely) I favor hand coding as it is faster, less complex when enforcing business process.  Also, this allows one usage of the database management system's transaction mechanisms which are typically far more robust and reliable on top of being simpler to work with.  <br /><br />Please note that the type of my storage for your database within MySQL will support different features.  To enable the usage of database transactions you will need to use the InnoDB table type rather then the default MyISAM table type.  Various versions of MySQL have other options for transaction safe table but those two are the ones that are consistently available in web environs where bleeding edge software is not normally deployed.<br /><br />http://dev.mysql.com/doc/refman/5.0/en/storage-engines.html<br /><br />Diatribe aside, what you need to do with these templated objects is to duplicate the object referenced {paypalinfo} and apply mysql_real_escape_string to the duplicates elements {paypalinfo_escaped_copy.txnid}.  Then run the copied ADDT code with values from {paypalinfo_escaped_copy}.  How you do you this I leave you to track down as I do not find that level of abstraction to be a good use of my time and other other libraries/frameworks do it much more elegantly using less of my time.<br /><br />But as Gunter already noted, refactoring your problem to work with your tools existing architectures can be simpler.  ADDT has a limited programming architecture (primary design) which is done to simplify the automatic generation of code.  This can make some simple things complex (50-80 mouse clicks) as opposed to  typing one or two lines of code.<br /><br />some thoughts, <smile><br /><br />Sean

  • Transaction Launcher to call custom transaction

    Hi ,
    I have a requirement where i need to call a custom transaction using transaction launcher. I am able to successfully launch the transaction. But i need to pass a value to the transaction.
    For eg. If i am calling a custom report transaction which has a selection screen field 'FORMNAME' as a parameter i need to pass the name of the form to the transaction. I am not able to pass that value. Can any one help me onthis.
    I have seen all the posts , but could not get any help on how to set the value for custom transaction. I can see how it is done for standard transaction.
    Regards
    Ansari

    Hi Any help on this....I am still awaiting the response.
    Requirement: My requirement is to launch the SE38 transaction on WEBUI using transaction luncher tool and set the parameter on the selection screen.
    Issue: The issue is that I am able to lunch the transaction but unable to set the parameter
    Steps Performed:
    I want to list down all the steps I performed to launch an SE38 transaction using transaction launcher on the WEBUI
    1) Defined logical system in tcode CRMS_IC_CROSS_SYS
    -The logical link looks like this
    http://<server>:<port>/sap/bc/gui/sap/its/webgui/!?transaction=IC_LTXE&okcode=ICEXECUTE ?sap-client=300
    2) Defined URL & paratemeter wherein the request method is "GET", opted for NON-BSP URL
    URL link here is
    http://<server>:<port>/sap/bc/gui/sap/its/webgui/!?transaction=SE38&okcode=ONLI
    -Note: My selection screen okcode os ONLI*
    -The logical system ref is provided here
    3) Defined the parameter by giving the screen name like for SE38 selection screen name is "RS38M-PROGRAMM"
    4) Configured the transaction launcher of type B - URL type and provided the reference of the URL ID, choose the relevant parameter from the drop down and have hardcoded the value, cheked the box "Save Data in Activity Clipboard
    5) Added this in the NAvlink/Bus Role etc
    6) Now in the handler class of the TL the code looks like this:
    IF_CRM_IC_ACTION_HANDLER~PREPARE_DATA_FLOW
    __gdc ?=
    cl_crm_ui_data_context_srv=>get_instance( gv_view_controller ).
    __value
    =
    'ZC_TEST'.
    add_parameter(
       iv_name =
    'RS38M-PROGRAMM'
    iv_value = __value ).
    However, after performing the above steps I am unable to set the parameter. Please suggest where am I missing out on. An early response would really be appreciated.

Maybe you are looking for

  • How to add a new button in an ALV using factory method

    im using factory method to creat an ALV The reason why I'm doing this is because I want the ALV and the selection screen in the same screen like exemplified here http://help-abap.blogspot.com/2008/10/dispaly-alv-report-output-in-same.html CALL METHOD

  • Cannot release inventory allocated as Sales Order Stock

    Hi All,  I'm very new to SAP and am somewhat unfamiliar with the SD process.  We created a Sales Order (from a customer purchase order), everything was okay until we tried to do an ATF; a change was made to the strategy group (from 20 - MTO to 40 - M

  • Nokia Communication Centre cannot find my SMS/MMS

    Hello I currently have a Nokia n70, which I am replacing with a new model. However. No Nokia software can find my sms/mms messages so I can take a backup of them. Latest firmware version on the phone:  v 5.0705.3.0.1 Latest version of PC Suite. Windo

  • Data Pump takes too much time importing (13 hours)

    Hi I need some help with an import that take around 13 hours finishing. This is the configuration; RAC - 2 nodes, 4 processors each OS HP UX DB Oracle 10.2.0.5.0 64 bits IMPDP parfile: USERID=xxx/xxx DUMPFILE=('DB_FULLEXPORT_01.dmp','DB_FULLEXPORT_02

  • PSE 7 - Can only Maximise or Minimise window

    Using Photoshop Elements 7 on 2 monitor set-up The app will only allow me to minimise or maximise - restore icon - minimises the window. Have tried move and size from right click on the taskbar. Any ideas?...thanks