Calling a transaction in FM SO_OBJECT_SEND

Hi there,
i want to send an sap mail which contains a call to a transaction.
My problem is, that the parameters to fill the fields of the transaction don't work with parameter names, which have more than 3 characters.
For example:
step 1: creating the email (this works fine and the emails is placed in my inbox)
lf_object_hd_change-file_ext = 'HTM'.
lf_object_hd_change-vmtyp = 'T'.
lf_object_hd_change-acnam = 'REBDBU'. " the transaction to be called
lf_object_hd_change-objsns = 'F'.
lf_object_hd_change-skips = 'X'.
lf_object_hd_change-objla  = sy-langu.
lf_object_hd_change-objnam = 'Name of the mail'.
lf_object_hd_change-objdes = 'Subject of the mail'.
lf_object_hd_change-objcp  = 'X'.
* Specify the fields of the called transaction
itab_objpara-name = 'BUK'. "THIS WORKS FINE BECAUSE SAP KNOWS THE FIELD BUK
itab_objpara-low = 'P001'.
APPEND itab_objpara.
itab_objpara-name = 'WEH'. "THIS WON'T WORK BECAUSE THE FIELD WEH IS UNKNOWN
itab_objpara-low = '10003'.
APPEND itab_objpara.
step2: changing the layout of my inbox to show the column EXECUTE
step3: double-clicking the execute button calls the transaction REBDBU
step4: the field BUK is correctly filled, but the next field (the business entity) is not filled. the technical docu says that the name of this field is SWENR, but the FM SO_OBJECT_SEND only handles field names with 3 chararcters.. (so i searched and searched and searched and found the 3-char code WEH for the business entity, but this is quite obsolete)
Is there anybody who got a solution?

Hi,
first, thanks for your reply. I tried this but this does not solve the problem at all.
The first thing is, that it would be nice to have the mail as executable document. But now i have a mail with an attachment, which must be saved and then executed (both manually).
-> Do you know how to combine the creation of an executable mail with the executable code coming from SWN_CREATE_SHORTCUT?
The second thing is, that the values of the parameters are not transported (the fields are empty after clicking the file on the desktop). But the created file looks fine.
[System]
Name=PX1
Description=
Client=300
[User]
Name=EREDLIN
Language=DE
[Function]
Title=
Command=REBDBU BUKRS=P001;SWENR=10003;SGENR=101;
Type=Transaction
[Configuration]
GuiSize=Normal window

Similar Messages

  • Passing multiple values for a single field in URL to call sap Transaction

    Hi All,
    I need to pass multiple values for a single field to SAP transaction .
    means if i have say a field "Date" which can contain more than one value, <b>but its not a range which has two fields</b> . How is it possible.
    Let me know pls.
    Regards,
    Sirisha.R.S.

    Hi Satyajit,
    I need to call a transaction with multiple values which gives me the report based on those values.
    So I need to pass multiple values for a single parameter.
    I hope u got it.
    Regards,
    Sirisha.R.S.

  • How to call a transaction (in a new session) from a program

    Hi ,
    I need to call a transaction from my report on the click of a button in toolbar.
    But the transaction should open in a new session.
    This is the code that i have written, MM03 is getting opened in the same session.
    call transaction 'MM03' and skip first screen.
    Hope that my question is clear.
    Thanking you in advance..
    Shankar

    check this
    <b>CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'TEST'
      DESTINATION 'NONE'
      EXPORTING
          TCODE = 'SM59'
      EXCEPTIONS
        COMMUNICATION_FAILURE = 1 MESSAGE MSG_TEXT
        SYSTEM_FAILURE        = 2 MESSAGE MSG_TEXT.
      IF SY-SUBRC NE 0.
        WRITE: MSG_TEXT.
      ELSE.
        WRITE: 'O.K.'.
      ENDIF.</b>
    <b>u can avoid such errors thru this FM
    check FI_DUPLICATE_INVOICE_SHOW program for sample code.</b>
    regards
    Prabhu
    Message was edited by: Prabhu Peram

  • How to call 2 transactions in a single screen

    Hi All,
    I need to call 2 Standard transaction in a single screen.
    ie: 1 transaction should be displayed in first half of the sceen and another transaction should be in the next half. How we can do this.
    Thanks
    Partha.

    Attach two subscren in that screen and call the transactions from the seperate subscreens.

  • Error while calling MII transaction as web service from ABAP

    Hello Experts,
    I want to call a MII transaction from ABAP program, as a web service.
    Following is output of http://<<server>>:50000/XMII/SOAPRunner/TAG_TRX  (TAG_TRX is name of my transaction).
      <?xml version="1.0" encoding="UTF-8" ?>
    - <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.sap.com/xMII" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://www.sap.com/xMII">
    - <!--  Types
      -->
    - <types>
    - <s:schema elementFormDefault="qualified" targetNamespace="http://www.sap.com/xMII">
    - <s:complexType name="InputParams">
    - <s:sequence id="InputSequence">
      <s:element maxOccurs="1" minOccurs="0" name="WEIGHT" type="s:string" />
      <s:element maxOccurs="1" minOccurs="0" name="BATCHID" type="s:string" />
      </s:sequence>
      </s:complexType>
    - <s:element name="XacuteRequest">
    - <s:complexType>
    - <s:sequence>
      <s:element maxOccurs="1" minOccurs="0" name="LoginName" type="s:string" />
      <s:element maxOccurs="1" minOccurs="0" name="LoginPassword" type="s:string" />
      <s:element maxOccurs="1" minOccurs="0" name="InputParams" type="s0:InputParams" />
      </s:sequence>
      </s:complexType>
      </s:element>
    - <s:complexType name="Rowset">
    - <s:sequence>
      <s:element maxOccurs="unbounded" minOccurs="0" name="Row" type="s0:Row" />
      </s:sequence>
      <s:attribute name="Message" type="s:string" />
      </s:complexType>
    - <s:complexType name="Row">
      <s:sequence id="RowSequence" />
      </s:complexType>
    - <s:element name="XacuteResponse">
    - <s:complexType>
    - <s:sequence>
      <s:element maxOccurs="1" minOccurs="0" name="Rowset" type="s0:Rowset" />
      </s:sequence>
      </s:complexType>
      </s:element>
      </s:schema>
      </types>
    - <!--  Messages
      -->
    - <message name="XacuteSoapIn">
      <part element="s0:XacuteRequest" name="parameters" />
      </message>
    - <message name="XacuteSoapOut">
      <part element="s0:XacuteResponse" name="parameters" />
      </message>
    - <!--  Ports
      -->
    - <portType name="XacuteWSSoap">
    - <operation name="Xacute">
      <input message="s0:XacuteSoapIn" />
      <output message="s0:XacuteSoapOut" />
      </operation>
      </portType>
    - <!--  Bindings
      -->
    - <binding name="XacuteWSSoap" type="s0:XacuteWSSoap">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    - <operation name="Xacute">
      <soap:operation soapAction="http://www.sap.com/xMII" style="document" />
    - <input>
      <soap:body use="literal" />
      </input>
    - <output>
      <soap:body use="literal" />
      </output>
      </operation>
      </binding>
    - <!--  Service mapping
      -->
    - <service name="XacuteWS">
    - <port binding="s0:XacuteWSSoap" name="XacuteWSSoap">
      <soap:address location="http://<<server>>:50000/XMII/SOAPRunner/TAG_TRX" />
      </port>
      </service>
      </definitions>
    Now, when I am using http://<<server>>:50000/XMII/SOAPRunner/TAG_TRX to create a Enterprise Service in SAP (i.e. SE80 transaction-> Create Enterprise Service-> Service Consumer-> URL/HTTP Destination-> URL ... I am getting following error.
    Incorrect value: Entity "<<document>>"(5 /93 ). unexpected symbol: '<'     
    But, whenever I am using the same URL in MII BLS, it does not give any error. It correctly shows all input and output parameters.
    Please help me to resolve this issue.
    Regards
    Neeta.

    Now, I am able to create the Web Service in SAP and it is now showing the respective class, attribute and methods to execute this web service (web service to call MII transaction).
    But when I am calling it from ABAP (a simple Web Dynpro for ABAP method), it is showing me the following error:
    Error (id=GET_BUSINESS_SYSTEM_ERROR): An error occurred when determining the business system (LD_ERROR)
    Thought this error is coming from ABAP program, but I am sure that this is related to some configuration at SAP level. (Let me inform you that there are two different servers for SAP Web Dynpro ABAP and SAP MII.
    Please help.
    Thanks in advance.

  • Error while calling MII transaction as web service

    Hi all,
    I am using MII version 12.1.8
    When i try calling a BLS as a web service i am getting an error as " [ERROR] Error Invoking Web Service Action: Status (502): Proxy Error ( No data record is available. ) "
    The same WSDLGen url is working from the browser. The path is http://<server>:50000/XMII/WSDLGen/<TrxPath>
    I also gave Proxy Host and Proxy Port in System Management --> System Administration
    Is there anything i am missing in the web service action.
    Kindly help
    Regards
    Muzammil

    Hi Diana,
    It is working now. I removed the proxy settings from system administrator and added a new credential alias for web service. And then it started working..
    The scenario which i am trying is as mentioned. We need to call a transaction from a diiferent MII Server. So at first i was trying with the Trx within the same server.
    Hope this is the best way to access the transaction from a different server.
    Regards
    Muzammil

  • Possible to call a transaction from a planning book using a macro button?

    Hi All,
    Is it somehow possible to call a transaction using a macro button in the planning book? Also, the current selection should be passed as input parameters to the transaction.
    In my example, I am trying to run the transaction /SAPAPO/MC90 - Release to Supply Network Planning from the Demand Planning  Planning Book/Data View. This way if planners need to change forecasts mid month for specific selections, they can easily transfer to SNP without having to go out of interactive planning.
    Thank you,
    Maria

    Hello Maria,
              It's possible to call a transaction from a planning book using a macro button.
    What you can do is ..... Create a function module and inside it use the command "Call Transaction Tcode"  (ABAPer can do this) to call ur specific transaction. And this module can in turn be called from your macro. Please find the below link which explanis how to call a function module from a macro. Do let me know if you need more information on this.
    Calling a function module from APO Macro
    Regards,
    Siva.

  • Calling a transaction and skipping the first screen

    Dear forumers,
    In my report program, I will need to call a custom transaction with skipping the first screen.
    And, this custom transaction is created from a query.
    Currently, the codes look like below:-
            SET PARAMETER ID: 'BUK' FIELD w_output-bukrs,
                              'AN1' FIELD w_output-anln1.
            CALL TRANSACTION 'ZCUSTQ' AND SKIP FIRST SCREEN.
    Everything works perfectly alright except for one thing: The first screen is not skipped. When the custom transaction is called, the first screen is still displayed to the user.
    Additionally, I also found out that the "SKIP FIRST SCREEN" does not work because the screen's next screen number is the same. This means the screen 1000's next screen is 1000 as well.
    (See notes in italics below)
    Does anyone have any ideas on how to resolve this? Please help.
    This addition suppresses the display of a screen of the initial dynpro of a called dialog transaction. The addition AND SKIP FIRST SCREEN suppresses the first screen under these prerequisites:
    For the initial dynpro, in the Screen Painter the own dynpro number must not be specified as the next screen number.
    All mandatory input fields of the initial dynpro must be filled completely and with the correct values by the SPA/GPA parameters
    If these prerequisites are met, that screen of the dynpro is displayed that is specified in the Screen Painter as the next dynpro of the initial dynpro.

    For Any Query , if you want to create the Transaction you need to use the Tcode START_REPORT
    in general it will skip the first Transaction codes selection screen , Not your query reports selection screen.
    I checked and verfied...
    Steps to verify the issue..
    1.Go to SE93 ,Now you will go for parametric transaction.
    2. give the Transaction as START_REPORT, there you will have option Skip Initial Screen. You uncheck that.
    3. Now give all information related to your query.
    and see the  effect
    call TRANSACTION 'YYTCODE  AND SKIP FIRST SCREEN.
    This will always trying to skip the First transaction's selection/initial screen , Not your Query selection screen.
    You also try to check and let me know.

  • Call a transaction with Application WD ABAP

    Dear Expert.
    In this moment I have the following requirement:
    I created an Application WD ABAP and created a button that must call a transaction of R/3 in the portal.
    I created a Transaction Iview and for this iView I created a Page. Now I want that  when the enduser press the button in the application WD ABAP, the system call the transaction.
    How Can solve this issue?
    Thanks in advance for you help.
    Regards

    the wizard tool will create the OBN call for you, just go to portal navigation in the wizard tool.
    your IVIEW parameters should be pass in the OBN call.
    thanks!
    Jason PV

  • Calling BD87 transaction in a workflow

    Hi expert,
                        I have to send a mail into sap inbox from my workflow when user accept the mail it will  call BD87 transaction.can anyone tell me how can I do this? because I am new in workflow? One more thing is there any satandard event or change document  availabe for transaction BD87.

    Hello,
    You could send an email that has a URL link to run transaction BD87.
    This is not really a workflow question per se.... unless you want to send ths mail from a workitem.
    By the way, it may not be necessary for a user to manually run BD87. Have you considered scheduling
    various programs (eg RBDMANI2 and RBDAPP01) to process stalled idocs automatically, on a regular basis?
    cheers
    Paul Bakker
    Hanabi Technology

  • RRI not working for calling up transaction BI admin cockpit

    Hi,
    We have implemented BI admin cockpit and all technical contents and settings are OK, but when we try to navigate to call any transaction (Monitor, Process status TCode ST22, RSA1, RSMO, RSPC etc) by calling RRI than instead of getting the desired transaction screen we are getting the SAP Easy Access screen. Although we can navigate to Second level web template thru RRI and if we define target system other that BI (i.e. ECC or CRM) than we are able to navigate any transaction transaction i.e. SE38 or SE37 etc,
    Any suggestion or help would be appriciated.
    thanks
    Dev

    Hi Sunny,
    as per your reply i have check the BI usage types using that URL.
    And the below is the result.
    Information about Active Usage Types
    Active Usage Types
    Product                     UT Code      Short Name      Description           
    NetWeaver                  BI                  BI Java      BI Java           
    NetWeaver                 AS                 AS Java      Application Server Java           
    NetWeaver                  DI                          DI      Development Infrastructure           
    NetWeaver                 EPC                      EP Core       Enterprise Portal Core Components           
    NetWeaver                     EP                           EP      Enterprise Portal           
    Can you please help.
    Thanks
    AS

  • To Call a transaction from message body of an e-mail sent from SAP

    I have requirement to call a transaction (say MM03) when I click on some text ( Like  Hyperlink ) in the message body of an email sent by SAP.
    Please let me know how it should be done.

    I dont know whether you can do hyperlink in the mail but i can think of following 2 options:
    1)  Use Workflow and send it to user and then attach transaction MM03 to that so that when user receives message, he/she can directly open MM03.
    2)  In report, you can have hyperlink.

  • BADi called from transaction FB60

    Hi all
    I am looking for a BADi called from transaction FB60 in ECC 6.0. This is needed due to the fact we will develope a solution where we transfer the cost from an invoice booked to an intern order and transfer the cost and currency to CRM 7.0. Please if there is anybody who know a Badi that is triggered when the transaction FB60 is Saved, it will be very help full to us.
    Best Regards
    Camilla

    Hi,
    Re: Need user exit or BADI for FB60
    Best regards, Christian

  • How to Fill the selection screen while calling the transaction

    Hi All,
             my requirement is in one of the screen while i will press a push button it will call one transaction and it will fill the selection screen build order number field and skip the first screen i.e the selection screen it will show the output of that report directly.
    am using this code .
    case sy-ucomm.
    while 'FSLR'.
    set PARAMETER ID 'ANR' FIELD aufnr.
    RANGES s_aufnr FOR afko-aufnr.
          s_aufnr-sign   = 'I'.
          s_aufnr-option = 'EQ'.
          s_aufnr-low    = aufnr.
          APPEND s_aufnr.
    CALL TRANSACTION 'ZFS1' USING s_aufnr
         MODE 'E' .
        AND SKIP FIRST SCREEN.
    endcase.
    here the problem is i cant use both skip screen and using at a time nither the screen is filling nor its skipping the first screen.
    but its not working would any one please help how can i do this functionality?

    Hi
    Do in this way.
    DATA: rspar TYPE TABLE OF rsparams WITH HEADER LINE.
    rspar-selname = 'S_AUFNR'.
    rspar-kind = 'S'.
    rspar-sign = 'I'.
    rspar-option = 'EQ'.
    rspar-low = 'aufnr'.
    APPEND rspar.
    SUBMIT zfs1_prog  VIA SELECTION-SCREEN WITH SELECTION-TABLE rspar AND RETURN.
    If this doesnt suit yer requirement, I wud suggest you to use BDC as below.
    CALL TRANSACTION 'SE11' USING bdcdata
                           MODE   'E'
                           UPDATE 'A'.

  • In EP, call R3 transaction with dynamic variant name

    Hello
    I know that I can call a R3 transaction with a dedicated variant thanks to the process below:
    Create a transaction iview , Tcode = "START_REPORT"
    In application parameters pass these values separated by '&' sign.
    D_SREPOVARI-REPORT - your report
    D_SREPOVARI-VARIANT - your saved variant.
    choose skip inital screen in the parameters.
    But do you have a tip to call a different variant for every user.
    For example, I have users "1111" and "2222". In R3 I have created the variant "1111" and "2222" for a transaction.
    In EP, I would like that when I call this transaction connected as "1111", the variant "1111" is used, and when I'm logged as "2222", the variant "2222" is used.
    Do you know how I can do that ?
    Thank you !

    Hello,
    where is the information which user has to call which variant stored? If it's in R/3 then you can write an wrapper report which is called from the Portal, adds the Variant information and then calls the original report.
    Regards
    Gregor

Maybe you are looking for

  • Creating a user thats saved to a table? possible or not???

    Ok.....so my uni assignment is to make an SQL database and then a front end in access...for a shoe store...i can make test databases and get access to connect to the sql....yay now im never going to get a brilliant grade because im TERRIBLE at all so

  • Struts workflow question

    In "Struts in Action" on page 228 paragraph Chaining Actions, author says in regard to exchanging the same form bean between two actions: "...create a new form bean (in the first action) for the second action, populate it, and add it to the request.

  • ACS IP Pools

    Hello, I have a question about the handling of the IP Address Pools on the ACS which can be used by dial in users. If I define an IP Address Pool and take one of these addresses and assign it permanently to a user (for dial in) in the ACS configurati

  • How can i render just  section of the timeline?

    Is there i way of setting the IN and OUT points in the timeline and pressing "cmd + R" and render only the selected section? or something like it? thank you Leon.

  • Issue with Function Module...

    Hi Frnzs, Here is my issue..Plz go thru it.. I have a function module (YFSF_ICR_GET_EXCHG_RATE_ODS). the function performs the current logic without any changes, that is reading SPOT rates for actuals (the planning cycle is empty) or S rates for fore