Generate VCARD from ABAP?

Hello experts,
is there any possibility to generate a VCARD in ABAP? exist any function module or bapi regarding this issue?
best regards´
Ilias

yes, but you will have to generate it manually.
The format is quite simple:
BEGIN:VCARD
VERSION:3.0
N:Doe;John;;;
FN:John Doe
ORG:Example.com Inc.;
TITLE:Imaginary test person
EMAIL;type=INTERNET;type=WORK;type=pref:johnDoe(at)example.org
TEL;type=WORK;type=pref:+1 617 555 1212
TEL;type=CELL:+1 781 555 1212
TEL;type=HOME:+1 202 555 1212
TEL;type=WORK:+1 (617) 555-1234
item1.ADR;type=WORK:;;2 Example Avenue;Anytown;NY;01111;USA
item1.X-ABADR:us
item2.ADR;type=HOME;type=pref:;;3 Acacia Avenue;Newtown;MA;02222;USA
item2.X-ABADR:us
NOTE:John Doe has a long and varied history\, being documented on more police files that anyone else. Reports of his death are alas numerous.
item3.URL;type=pref:http\://www.example/com/doe
item3.X-ABLabel:_$!<HomePage>!$_
item4.URL:http\://www.example.com/Joe/foaf.df
item4.X-ABLabel:FOAF
item5.X-ABRELATEDNAMES;type=pref:Jane Doe
item5.X-ABLabel:_$!<Friend>!$_
CATEGORIES:Work,Test group
X-ABUID:5AD380FD-B2DE-4261-BA99-DE1D1DB52FBE\:ABPerson
END:VCARD

Similar Messages

  • Problem with generating WSDL from ABAP

    Hi all
    I have encountered a problem.I created a WSDL from a ABAP program,but in the ABAP function module what it does is it inserts value onto a transparent table from a table which let me specify as a virtual table.So after generating the wsdl i am surprised to see the virtual table has come in the output part .I am unable to make out why this happened.
    i am mentioning below the ABAP code which inserts value on to a transparent table from a virtual table
    Code-Function module-smlg_modify
    <u>virtual table Definition</u>
    "table with items for insertion
      DATA INS_TAB LIKE RZLLITAB OCCURS 0 WITH HEADER LINE.
    DESCRIBE TABLE MODIFICATIONS LINES ITEMS.
    LOOP AT MODIFICATIONS.
        MODIFICATIONS-GROUPTYPE = GROUPTYPE.
        CASE MODIFICATIONS-MODIFICATN.
          WHEN 'I'. "insertion of an item
            INS_TAB = MODIFICATIONS.
            APPEND INS_TAB.
    END LOOP
    DESCRIBE TABLE INS_TAB LINES ITEMS.
      IF ITEMS > 0.
        INSERT RZLLITAB FROM TABLE INS_TAB-->(one i mentioned as virtual.)
      ENDIF.
    In such a case how comes the virtual comes as the output in wsdl
    I am mentioning below the the wsdl
    <----
    >
    <?xml version="1.0" encoding="ASCII"?>
    <wsdl:definitions xmlns:ctc="http://sap.com/ctc" xmlns:ctc-bapi="http://www.sap.com/ctc/abapprovider" xmlns:ctc_ref="urn:example/encoded" xmlns:ctclib="http://sap.com/ctc/schema/lib" xmlns:plnk="http://schema.xmlsoap.org/ws/2003/05/partner-link" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://sap.com/ctc/services" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SMLG_MODIFYServiceDefinition" targetNamespace="http://sap.com/ctc/services">
      <wsdl:types>
    <xsd:schema xmlns:tns="http://sap.com/ctc/services" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://sap.com/ctc/services">
    <xsd:element name="GROUPTYPE" type="xsd:string"/>
    <xsd:element name="SET_LOCK" type="xsd:string"/>
    <xsd:complexType name="ERFC_MODIFICATIONS">
    <xsd:sequence>
    <xsd:element name="CLASSNUM" type="xsd:int"/>
    <xsd:element name="CLASSNAME" type="xsd:string"/>
    <xsd:element name="GROUPTYPE" type="xsd:string"/>
    <xsd:element name="TIMERERD" type="xsd:int"/>
    <xsd:element name="LOGRERD" type="xsd:int"/>
    <xsd:element name="FAVTYPE" type="xsd:string"/>
    <xsd:element name="MODIFICATN" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="ERFC_MODIFICATIONS" type="tns:ERFC_MODIFICATIONS"/>
    <xsd:element name="CLASSNUM" type="xsd:int"/>
    <xsd:element name="CLASSNAME" type="xsd:string"/>
    <xsd:element name="GROUPTYPE" type="xsd:string"/>
    <xsd:element name="TIMERERD" type="xsd:int"/>
    <xsd:element name="LOGRERD" type="xsd:int"/>
    <xsd:element name="FAVTYPE" type="xsd:string"/>
    <xsd:element name="MODIFICATN" type="xsd:string"/>
    </xsd:schema>
    </wsdl:types>
      <wsdl:message name="SMLG_MODIFYInput">
        <wsdl:part name="GROUPTYPE" type="xsd:string"/>
        <wsdl:part name="SET_LOCK" type="xsd:string"/>
      </wsdl:message>
      <wsdl:message name="SMLG_MODIFYOutput">
        <wsdl:part name="ERFC_MODIFICATIONS" type="tns:ERFC_MODIFICATIONS"/>
        <wsdl:part name="CLASSNUM" type="xsd:int"/>
        <wsdl:part name="CLASSNAME" type="xsd:string"/>
        <wsdl:part name="GROUPTYPE" type="xsd:string"/>
        <wsdl:part name="TIMERERD" type="xsd:int"/>
        <wsdl:part name="LOGRERD" type="xsd:int"/>
        <wsdl:part name="FAVTYPE" type="xsd:string"/>
        <wsdl:part name="MODIFICATN" type="xsd:string"/>
      </wsdl:message>
      <wsdl:portType name="SMLG_MODIFYPT">
        <wsdl:operation name="SMLG_MODIFYOperation">
          <wsdl:input message="SMLG_MODIFYInput"/>
          <wsdl:output message="SMLG_MODIFYOutput"/>
          <wsdl:fault message="ctclib:BAPIException" name="BAPIException"/>
        </wsdl:operation>
      </wsdl:portType>
      <wsdl:binding name="SMLG_MODIFYBinding" type="SMLG_MODIFYPT">
        <ctc:binding transport="com.sap.mw.jco"/>
        <wsdl:operation name="SMLG_MODIFYOperation">
          <ctc-bapi:function name="SMLG_MODIFY"/>
          <wsdl:input>
            <ctc:body encodingStyle="ctc:SCHEMA2ABAP">
              <ctc-bapi:partbinding name="GROUPTYPE">
                <field elementname="GROUPTYPE">
                  <name>GROUPTYPE</name>
                  <type>CHAR</type>
                </field>
              </ctc-bapi:partbinding>
              <ctc-bapi:partbinding name="SET_LOCK">
                <field elementname="SET_LOCK">
                  <name>SET_LOCK</name>
                  <type>CHAR</type>
                </field>
              </ctc-bapi:partbinding>
            </ctc:body>
          </wsdl:input>
          <wsdl:output>
            <ctc:body encodingStyle="ctc:SCHEMA2ABAP">
              <ctc-bapi:partbinding name="ERFC_MODIFICATIONS">
                <table elementname="ERFC_MODIFICATIONS" jcoName="ERFC_MODIFICATIONS">
                  <structure elementname="RZLLIMODGP" jcotype="RZLLIMODGP">
                    <field elementname="CLASSNUM">
                      <name>CLASSNUM</name>
                      <type>NUMC</type>
                    </field>
                    <field elementname="CLASSNAME">
                      <name>CLASSNAME</name>
                      <type>CHAR</type>
                    </field>
                    <field elementname="GROUPTYPE">
                      <name>GROUPTYPE</name>
                      <type>CHAR</type>
                    </field>
                    <field elementname="TIMERERD">
                      <name>TIMERERD</name>
                      <type>NUMC</type>
                    </field>
                    <field elementname="LOGRERD">
                      <name>LOGRERD</name>
                      <type>NUMC</type>
                    </field>
                    <field elementname="FAVTYPE">
                      <name>FAVTYPE</name>
                      <type>CHAR</type>
                    </field>
                    <field elementname="MODIFICATN">
                      <name>MODIFICATN</name>
                      <type>CHAR</type>
                    </field>
                  </structure>
                </table>
              </ctc-bapi:partbinding>
              <ctc-bapi:partbinding name="CLASSNUM">
                <field elementname="CLASSNUM">
                  <name>CLASSNUM</name>
                  <type>NUMC</type>
                </field>
              </ctc-bapi:partbinding>
              <ctc-bapi:partbinding name="CLASSNAME">
                <field elementname="CLASSNAME">
                  <name>CLASSNAME</name>
                  <type>CHAR</type>
                </field>
              </ctc-bapi:partbinding>
              <ctc-bapi:partbinding name="GROUPTYPE">
                <field elementname="GROUPTYPE">
                  <name>GROUPTYPE</name>
                  <type>CHAR</type>
                </field>
              </ctc-bapi:partbinding>
              <ctc-bapi:partbinding name="TIMERERD">
                <field elementname="TIMERERD">
                  <name>TIMERERD</name>
                  <type>NUMC</type>
                </field>
              </ctc-bapi:partbinding>
              <ctc-bapi:partbinding name="LOGRERD">
                <field elementname="LOGRERD">
                  <name>LOGRERD</name>
                  <type>NUMC</type>
                </field>
              </ctc-bapi:partbinding>
              <ctc-bapi:partbinding name="FAVTYPE">
                <field elementname="FAVTYPE">
                  <name>FAVTYPE</name>
                  <type>CHAR</type>
                </field>
              </ctc-bapi:partbinding>
              <ctc-bapi:partbinding name="MODIFICATN">
                <field elementname="MODIFICATN">
                  <name>MODIFICATN</name>
                  <type>CHAR</type>
                </field>
              </ctc-bapi:partbinding>
            </ctc:body>
          </wsdl:output>
        </wsdl:operation>
      </wsdl:binding>
      <wsdl:service name="SMLG_MODIFYService">
        <wsdl:port binding="SMLG_MODIFYBinding" name="SMLG_MODIFYServicePort"/>
      </wsdl:service>
    </wsdl:definitions>
    >
    My purpose is to create a .cproc file which will pass values to this wsdl file.I dont know how to pass as the table which the function module accepts as input is output in wsdl.so i am not aware how to pass value.Kindly help me out how to create a .cproc file for it
    Thanks
    Neeta

    Hello Anton,
    where on the abap-server I can find the generated wsdl?
    I have downloaded the wsdl to eclipse 3.3 and can call the webserrvice successfull.
    But when I try o call the webservice with <netweaver-server>/wsnavigator, I can input the data-fields, but the request answer is that the web-service is not found on the given domain.
    So I want manipulate the domain in the wsdl.
    Best regards
    Oliver Prodinger

  • Generate email from ABAP report.

    Hi Folks,
    I would like to know if it is possible to send email from to an external mail id from an ABAP report.
    If it is possible then what are detailed steps that needs to be taken in order to achive it. Also let me know how to attach files to the created email.
    Thanks,
    Imran

    FAQ, please search the forums before posting, do not ask the same question once again.
    Thread locked.
    Thomas

  • GEnerating IDOC from ABAP Program

    Hello all,
    we have a business scenario where we are usng XI.
    We are generating SO IDocs for the scenario. here are my Questions:
    1. the SO may be a create/modify/reject
    2. they have to pass several checlks like ATP, Flag check etc..(Validation) which we are handling it by a user exit, once the checks are passed we have to generate idocs..i am aware that we do output determination to generte the IDOC but we are opting that.we are trung to generate the idoc thru a z-program. can anybody guide me whether we can generate an idoc thru a z-program, if so can someone provide with a  sample code/steps to be followed.
    Also can a BAPI generate an IDOC?

    hi aarthi,
    not only in your below scenario,for anycase we need a program to generate IDOC for eg MASTER_IDOC_DISTRIBUTE..
    the best advice is to copy an existing inbound/outbound programs and  modify it to your need.this what SAP is also suggesting...
    Cheeers,
    Abdul Hakim

  • Generate PDF format from ABAP List using 'RSPO_SR_OPEN'

    Hi All,
    I need some help on the following code. I have 2 cases.
    First case:
    I am using the function Module 'RSPO_SR_OPEN' to create spool from the List Output.
    Once I get the Spool number from Above function Module I will submit it through report RSTXPDF5 to get spool request for PDF data created.
    I will use this spool number in the report RSTXPDFT5 to download it to Local system in PDF format.
    PDF will be generated but I am unable to open the PDF, some conversion error.
    Second Case:
    Instead of using function Module 'RSPO_SR_OPEN' , I will use standard Print button on the application toll bar to generate the spool number and then remaining step follows.
    In this case PDF file is generating as per the requirement.
    Now my question is why system does not work properly when I am using function module 'RSPO_SR_OPEN' .
    I have attached the code for your reference:
    AT USER-COMMAND.
    CASE SY-UCOMM.
    WHEN 'EMAIL'.
    IF SY-LSIND EQ 1.
    Send mail to User ID
    PERFORM SEND_MAIL.
    LEAVE TO LIST-PROCESSING.
    ENDIF.
    WHEN 'MM03'.
    SET PARAMETER ID 'MAT' FIELD I_MARA-MATNR.
    CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
    WHEN 'LIST'.
    data: pdf_spoolid like tsp01-rqident.
    data: gd_spool_nr1(11) type c,
          gd_spool_nr2(10) type c.
    RANGES : R_SPOOL FOR TSP01-RQTITLE.
    Function Module to Create Spool Number
      call function 'RSPO_SR_OPEN'
           exporting
                dest             =  c_device
                LAYOUT           = 'X_65_200'
                copies           = '1'
                doctype          = 'LIST'
           importing
                spoolid          = gd_spool_nr
           exceptions
                operation_failed = 1
                others           = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Report to Generate spool number for PDF convert
    submit RSTXPDF5 with spoolno  = gd_spool_nr
                    with dstdevic = 'LOCL' and return .
    if sy-subrc eq 0.
    gd_spool_nr2 = gd_spool_nr.
    condense gd_spool_nr2 no-gaps.
    concatenate '00000' gd_spool_nr2 '*' into gd_spool_nr1.
    R_SPOOL-LOW     = gd_spool_nr1.
    R_SPOOL-OPTION  = 'CP'.
    R_SPOOL-SIGN     = 'I' .
    APPEND R_SPOOL.
    To select PDF Spool Number from TSP01 based on Title
    select single * from tsp01 where rqtitle IN R_SPOOL.
    if sy-subrc eq 0.
    Report to Download PDF spool to GUI
      submit RSTXPDFT5 with spoolid = tsp01-rqident and return.
    endif.
    endif.
    ENDCASE.
    Thanks & Regards,
    Nagaraj

    Hi,
    Check this code,
    REPORT  Z_CREATE_PDF_ABAPLIST NO STANDARD PAGE HEADING.
    PF-status containing a PDF button in the report Output to generate
    PDF form
    SET PF-STATUS 'Z_PDF'.
    *Table Declarations
    TABLES: MARA, MARC, MAKT.
    Internal Table Declarations
    DATA: BEGIN OF TS_MARA OCCURS 0,
             MATNR LIKE MARA-MATNR,
             MTART LIKE MARA-MTART,
             MATKL LIKE MARA-MATKL,
             LVORM LIKE MARA-LVORM,
             WERKS LIKE MARC-WERKS,
             MAKTX LIKE MAKT-MAKTX,
           END   OF TS_MARA.
    Selection Screen Parameters
    SELECTION-SCREEN BEGIN OF BLOCK B1.
      SELECT-OPTIONS: S_MATNR FOR MARA-MATNR OBLIGATORY,
                      S_WERKS FOR MARC-WERKS OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK B1.
    TOP-OF-PAGE.
    write: 40 'Generating PDF from List Output' color 1 intensified on.
      skip 1.
      write: /1 'Date        :',  SY-DATUM,
             /1 'User ID     :',  SY-UNAME,
             /1(112) SY-ULINE.
    START-OF-SELECTION.
    Perform for Basic Selection
    PERFORM GET_MARA.
    Perform to Display Data
    PERFORM DISPLAY_MARA.
    AT USER-COMMAND.
    User Command to generate PDF Form
      AT USER-COMMAND.
      CASE SY-UCOMM.
        WHEN 'PDF'.
        DATA: L_PARAMS TYPE PRI_PARAMS,
                L_VALID TYPE STRING,
                W_SPOOL_NR LIKE TSP01-RQIDENT.
    TO GET PRINT PARAMETERS
          CALL FUNCTION 'GET_PRINT_PARAMETERS'
            IMPORTING
              OUT_PARAMETERS = L_PARAMS
              VALID          = L_VALID.
          IF SY-SUBRC <> 0.
          ENDIF.
    Internal table for Selection Screen
    DATA: BEGIN OF I_RSPARAMS OCCURS 0.
           INCLUDE STRUCTURE RSPARAMS.
    DATA: END OF I_RSPARAMS.
    Store the current selection screen details
    CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
      EXPORTING
        CURR_REPORT           = SY-REPID
    IMPORTING
      SP                    =
      TABLES
        SELECTION_TABLE       = I_RSPARAMS
    EXCEPTIONS
      NOT_FOUND             = 1
      NO_REPORT             = 2
      OTHERS                = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    SUBMIT TO GET THE SPOOL NUMBER
    SUBMIT Z_CREATE_PDF_ABAPLIST WITH SELECTION-TABLE I_RSPARAMS
                                 TO SAP-SPOOL
                                 SPOOL PARAMETERS L_PARAMS
                                 WITHOUT SPOOL DYNPRO
                                 AND RETURN.
    SELECT THE RECENTLY CREATED SPOOL
          SELECT MAX( RQIDENT ) INTO W_SPOOL_NR FROM TSP01
                                     WHERE RQCLIENT = SY-MANDT
                                     AND   RQOWNER  = SY-UNAME.
    *REPORT TO GENERATE SPOOL NUMBER FOR PDF CONVERT
          SUBMIT RSTXPDF5 WITH SPOOLNO  = W_SPOOL_NR
                          WITH DSTDEVIC = 'LOCL' AND RETURN .
          IF SY-SUBRC EQ 0.
            CLEAR W_SPOOL_NR.
    SELECT THE RECENTLY CREATED SPOOL FOR PDF
            SELECT MAX( RQIDENT ) INTO W_SPOOL_NR FROM TSP01
                                       WHERE RQCLIENT = SY-MANDT
                                       AND   RQOWNER  = SY-UNAME.
    *REPORT TO DOWNLOAD PDF SPOOL TO GUI
            SUBMIT RSTXPDFT5 WITH SPOOLID = W_SPOOL_NR
                             AND RETURN.
          ENDIF.
      ENDCASE.
    *&      Form  GET_MARA
          text
    -->  p1        text
    <--  p2        text
    FORM GET_MARA .
    CLEAR  : TS_MARA.
    REFRESH: TS_MARA.
    To select Materials based on Selection Criteria
    SELECT A~MATNR A~MTART A~MATKL A~LVORM B~WERKS INTO CORRESPONDING
                               FIELDS OF TABLE TS_MARA FROM MARA AS A
                               INNER JOIN MARC AS B ON A~MATNR EQ B~MATNR
                               WHERE A~MATNR IN S_MATNR
                               AND   B~WERKS IN S_WERKS.
    LOOP AT TS_MARA.
       SELECT SINGLE * FROM MAKT WHERE MATNR EQ TS_MARA-MATNR
                                 AND   SPRAS EQ SY-LANGU.
       MOVE MAKT-MAKTX TO TS_MARA-MAKTX.
       MODIFY TS_MARA INDEX SY-TABIX.
    ENDLOOP.
    ENDFORM.                    " GET_MARA
    *&      Form  DISPLAY_MARA
          text
    -->  p1        text
    <--  p2        text
    FORM DISPLAY_MARA .
    CLEAR  : TS_MARA.
    WRITE: /1   '|', 2(18)  'Material Number' COLOR 7,
             21  '|', 22(5)  'Plant          ' COLOR 7,
             28  '|', 29(13) 'Material Type  ' COLOR 7,
             42  '|', 43(14) 'Material Group ' COLOR 7,
             57  '|', 58(13) 'Deletion Flag  ' COLOR 7,
             71  '|', 72(40) 'Description    ' COLOR 7,
             112 '|'.
    WRITE: /1(112) SY-ULINE.
    LOOP AT TS_MARA.
      WRITE: /1   '|', 2(18)   TS_MARA-MATNR,
              21  '|', 22(5)   TS_MARA-WERKS,
              28  '|', 29(13)  TS_MARA-MTART,
              42  '|', 43(14)  TS_MARA-MATKL,
              57  '|', 58(13)  TS_MARA-LVORM,
              71  '|', 72(40)  TS_MARA-MAKTX,
              112 '|'.
    WRITE: /1(112) SY-ULINE.
    ENDLOOP.
    ENDFORM.                    " DISPLAY_MARA
    Thanks & Regards,
    Nagaraj Kalbavi

  • Create XML file from ABAP with SOAP Details

    Hi,
    I am new to XML and I am not familiar with JAVA or Web Service. I have searched in SDN and googled for a sample program for creating XML document from ABAP with SOAP details. Unfortunately I couldn't find anything.
    I have a requirement for creating an XML file from ABAP with SOAP details. I have the data in the internal table. There is a Schema which the client provided and the file generated from SAP should be validating against that Schema. Schema contains SOAP details like Envelope, Header & Body.
    My question is can I generate the XML file using CALL TRANSFORMATION in SAP with the SOAP details?
    I have tried to create Transformation (Transaction XSLT_TOOL) in SAP with below code. Also in CALL transformation I am not able to change the encoding to UTF-8. It's always show UTF-16.
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
      <xsl:template match="/">
        <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
          <SOAP:Header>
            <CUNS:HeaderInfo>
              <CUNS:InterfaceTypeId>10006</InterfaceTypeId>
              <CUNS:BusinessPartnerID>11223344</BusinessPartnerID>
              <CUNS:SchemaVersion>1.0</SchemaVersion>
              <CUNS:DateTime>sy-datum</DateTime>
            </CUNS:HeaderInfo>
          </SOAP:Header>
          <SOAP:Body>
            <xsl:copy-of select="*"/>
          </SOAP:Body>
        </SOAP:Envelope>
      </xsl:template>
    </xsl:transform>
    In ABAP program, I have written below code for calling above Transformation.
      call transformation ('Z_ID')
           source tab = im_t_output[]
           result xml xml_out.
      call function 'SCMS_STRING_TO_FTEXT'
        exporting
          text      = xml_out
        tables
          ftext_tab = ex_t_xml_data.
    Please help me how to generate XML file with SOAP details from ABAP. If anybody have a sample program, please share with me.
    Is there any easy way to create the XML file in CALL Transformation. Please help.
    Thanks

    Try ABAP forum, as it seems not to be PI related.

  • How to delete the Generated files from application server(open hub)?

    hi experts,
    when i try to execute process chain the DTP it is giving below dump. Exception CX_RSBK_REQUEST_LOCKED logged.
    when i execute the DTP manually and trying to delete the previous request, it is giving for dump ITAB_DUPLICATE_KEY.
    so to delete the generated file from application server, how to delete it for specific dates?
    Information on where terminated
    Termination occurred in the ABAP program "GPD6S3OE0BCVGC6L9DBNVYQARZM" - in
    "START_ROUTINE".
    The main program was "RSBATCH_EXECUTE_PROZESS ".
    In the source code you have the termination point in line 2874
    of the (Include) program "GPD6S3OE0BCVGC6L9DBNVYQARZM".
    The program "GPD6S3OE0BCVGC6L9DBNVYQARZM" was started as a background job.
    and when i check the dump it is point out at below code
    " Populate the lookup table for 0STOR_LOC
    SELECT * from /BI0/TSTOR_LOC
    into CORRESPONDING FIELDS OF table L_0STOR_LOC_TEXT
    FOR ALL ENTRIES IN SOURCE_PACKAGE WHERE
    STOR_LOC = SOURCE_PACKAGE-STOR_LOC.
    but the programme is syntactically correct only.
    how to rectify the issue.
    regards
    venuscm
    Edited by: venugopal vadlamudi on Sep 28, 2010 1:59 PM

    hi experts,
    We have written start routine to get the storage location text and sending to File located at Application server through OPEN HUB.
    here is the code written in the Transformations
    In the global section
    Text for 0STOR_LOC
        DATA: l_0stor_loc_text TYPE HASHED TABLE OF /bi0/tstor_loc
              WITH UNIQUE KEY stor_loc.
        DATA: l_0stor_loc_text_wa TYPE /bi0/tstor_loc.
    and in the code to get the text
    " Populate the lookup table for 0STOR_LOC
        *SELECT * from /BI0/TSTOR_LOC*
          into CORRESPONDING FIELDS OF table L_0STOR_LOC_TEXT
          FOR ALL ENTRIES IN SOURCE_PACKAGE WHERE
                  STOR_LOC = SOURCE_PACKAGE-STOR_LOC.
    im sure there is problem with the Routine only. i think i need to change the code if so please provide me the modified one.
    thanks
    venuscm
    Edited by: venugopal vadlamudi on Sep 29, 2010 9:37 AM

  • How to print PDF file content from ABAP in background?

    Hi,
    Is it possible to print PDF file content from ABAP in background?
    I have some PDF content which I need to print it, these PDF files are generated outside the SAP.
    Please have you any suggestions?
    Thank you
    Tomas

    <b><u>Solution:</u></b><br>
    <br>
    The target output device must support PDF print, this is only one limitation.<br>
    <br>
    REPORT  z_print_pdf.
    TYPE-POOLS: abap, srmgs.
    PARAMETERS: p_prnds LIKE tsp01-rqdest OBLIGATORY DEFAULT 'LOCL',
                p_fname TYPE file_table-filename OBLIGATORY LOWER CASE,
                p_ncopi TYPE rspocopies OBLIGATORY DEFAULT '1',
                p_immed AS CHECKBOX.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.
      DATA: lv_rc     TYPE i,
            lv_filter TYPE string.
      DATA: lt_files TYPE filetable.
      FIELD-SYMBOLS: <fs_file> LIKE LINE OF lt_files.
      CONCATENATE 'PDF (*.pdf)|*.pdf|' cl_gui_frontend_services=>filetype_all INTO lv_filter.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          file_filter             = lv_filter
        CHANGING
          file_table              = lt_files
          rc                      = lv_rc
        EXCEPTIONS
          OTHERS                  = 1.
      IF sy-subrc NE 0 AND lv_rc EQ 0.
        MESSAGE 'Error' TYPE 'E' DISPLAY LIKE 'S'.
      ENDIF.
      READ TABLE lt_files ASSIGNING <fs_file> INDEX 1.
      IF sy-subrc EQ 0.
        p_fname = <fs_file>-filename.
      ENDIF.
    AT SELECTION-SCREEN.
      DATA: lv_name   TYPE string,
            lv_result TYPE boolean.
      lv_name = p_fname.
      CALL METHOD cl_gui_frontend_services=>file_exist
        EXPORTING
          file                 = lv_name
        RECEIVING
          result               = lv_result
        EXCEPTIONS
          OTHERS               = 1.
      IF sy-subrc NE 0.
        MESSAGE 'Bad file!' TYPE 'E' DISPLAY LIKE 'S'.
      ENDIF.
      IF lv_result NE abap_true.
        MESSAGE 'Bad file!' TYPE 'E' DISPLAY LIKE 'S'.
      ENDIF.
    START-OF-SELECTION.
    END-OF-SELECTION.
      PERFORM process.
    FORM process.
      DATA: lv_name     TYPE string,
            lv_size     TYPE i,
            lv_data     TYPE xstring,
            lv_retcode  TYPE i.
      DATA: lt_file TYPE srmgs_bin_content.
      lv_name = p_fname.
      CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename                = lv_name
          filetype                = 'BIN'
        IMPORTING
          filelength              = lv_size
        CHANGING
          data_tab                = lt_file
        EXCEPTIONS
          OTHERS                  = 1.
      IF sy-subrc NE 0.
        MESSAGE 'Read file error!' TYPE 'E' DISPLAY LIKE 'S'.
      ENDIF.
      CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
        EXPORTING
          input_length = lv_size
        IMPORTING
          buffer       = lv_data
        TABLES
          binary_tab   = lt_file
        EXCEPTIONS
          failed       = 1
          OTHERS       = 2.
      IF sy-subrc NE 0.
        MESSAGE 'Binary conversion error!' TYPE 'E' DISPLAY LIKE 'S'.
      ENDIF.
      PERFORM print USING p_prnds lv_data CHANGING lv_retcode.
      IF lv_retcode EQ 0.
        WRITE: / 'Print OK' COLOR COL_POSITIVE.
      ELSE.
        WRITE: / 'Print ERROR' COLOR COL_NEGATIVE.
      ENDIF.
    ENDFORM.                    " PROCESS
    FORM print USING    iv_prndst  TYPE rspopname
                        iv_content TYPE xstring
               CHANGING ev_retcode TYPE i.
      DATA: lv_handle    TYPE sy-tabix,
            lv_spoolid   TYPE rspoid,
            lv_partname  TYPE adspart,
            lv_globaldir TYPE text1024,
            lv_dstfile   TYPE text1024,
            lv_filesize  TYPE i,
            lv_pages     TYPE i.
      CLEAR: ev_retcode.
      CALL FUNCTION 'ADS_SR_OPEN'
        EXPORTING
          dest            = iv_prndst
          doctype         = 'ADSP'
          copies          = p_ncopi
          immediate_print = p_immed
          auto_delete     = 'X'
        IMPORTING
          handle          = lv_handle
          spoolid         = lv_spoolid
          partname        = lv_partname
        EXCEPTIONS
          OTHERS          = 1.
      IF sy-subrc NE 0.
        ev_retcode = 4.
        RETURN.
      ENDIF.
      CALL FUNCTION 'ADS_GET_PATH'
        IMPORTING
          ads_path = lv_globaldir.
      CONCATENATE lv_globaldir '/' lv_partname '.pdf' INTO lv_dstfile.
      OPEN DATASET lv_dstfile FOR OUTPUT IN BINARY MODE.
      IF sy-subrc NE 0.
        ev_retcode = 4.
        RETURN.
      ENDIF.
      TRANSFER iv_content TO lv_dstfile.
      IF sy-subrc NE 0.
        ev_retcode = 4.
        RETURN.
      ENDIF.
      CLOSE DATASET lv_dstfile.
      IF sy-subrc NE 0.
        ev_retcode = 4.
        RETURN.
      ENDIF.
      CALL FUNCTION 'ZBAP_RM_PDF_GET_PAGES'
        EXPORTING
          iv_content = iv_content
        IMPORTING
          ev_pages   = lv_pages.
      lv_filesize = XSTRLEN( iv_content ).
      CALL FUNCTION 'ADS_SR_CONFIRM'
        EXPORTING
          handle   = lv_handle
          partname = lv_partname
          size     = lv_filesize
          pages    = lv_pages
          no_pdf   = ' '
        EXCEPTIONS
          OTHERS   = 1.
      IF sy-subrc NE 0.
        ev_retcode = 4.
        RETURN.
      ENDIF.
      CALL FUNCTION 'ADS_SR_CLOSE'
        EXPORTING
          handle = lv_handle
        EXCEPTIONS
          OTHERS = 1.
      IF sy-subrc NE 0.
        ev_retcode = 4.
        RETURN.
      ENDIF.
    ENDFORM.                    " PRINT

  • Calling Portal event from ABAP class

    Hi Experts,
    I need a following clarificatrion, Please help,
    1. Is it possible to call a webdynpro method from a normal ABAP class?
    2. If no, we need a functionality of a class 'CL_WDR_HTTP_EXT_MIME_HANDLER' having method 'DO_DOMAIN_RELAX_HTML'.
    Is there any alternative method which can be used in ABAP having the same functionality.
    3. Is there any ways with which we can call portal event from ABAP class?
    Thanks,
    Shabir

    >1. Is it possible to call a webdynpro method from a normal ABAP class?
    I wouldn't necessarily recommend this approach. You shouldn't try to trigger events or any of the standard WDDO* methods from outside the WD Component itself.  That said, you can pass the object reference (like the WD_COMP_CONTROLLER object reference or the View Object Reference) into methods of normal classes.  Be careful if you are finding yourself calling a lot of your added methods from outside WD.  This is probably a sign that these methods should be in the Assistance Class or some other Class functioning as a Model Object.
    >2. If no, we need a functionality of a class 'CL_WDR_HTTP_EXT_MIME_HANDLER' having method 'DO_DOMAIN_RELAX_HTML'.
    Is there any alternative method which can be used in ABAP having the same functionality.
    What exactly do you want to do here?  Do you just want to get the relaxation script?  For what purpose?  You should never need to inject the relaxation script into WDA. 
    >3. Is there any ways with which we can call portal event from ABAP class?
    To what purpose.  Do you just want to delegate the triggering of the event that is inside WD Component to be called from a class?  If so you can pass the portal API object reference into a class from the WD Component.  However this only works while running within WD.
    How is this class used?  Are you running in WD?  Are you trying to generate some HTML code that runs in the portal independent of WD?

  • Execute unix script from abap.

    Hi friends,
    I have a abap report which generate  a text file in<b> /usr/tmp/</b>  directory . Now i have a unix script   which encript the text file.  I want to this from abap report. How I can do this . and in which path  I should keep this unix script   Please help.
    Regards

    Hi,
    try the below code
    parameters : p_sfile(60) lower case
    "File to be moved
    "Eg : /home/in/SFILE1.txt
    p_dfile(60) lower case.
    "File's Destination
    "Eg: /home/archive/SFILE1.txt
    data : t_btcxpm
    like btcxpm occurs 0,
    p_addparam
    like sxpgcolist-parameters.
    concatenate
    '/home/ABAP/scripts/Archive_file.sh'
    p_sfile
    p_dfile
    into p_addparam separated by space.
    refresh t_btcxpm. clear t_btcxpm.
    call function 'SXPG_CALL_SYSTEM'
    exporting
    commandname = 'ZSHELL'
    additional_parameters = p_addparam
    tables
    exec_protocol = t_btcxpm
    exceptions
    no_permission = 1
    command_not_found = 2
    parameters_too_long = 3
    security_risk = 4
    wrong_check_call_interface = 5
    program_start_error = 6
    program_termination_error = 7
    x_error = 8
    parameter_expected = 9
    too_many_parameters = 10
    illegal_command = 11
    others = 12.
    if sy-subrc = 0.
    write : /
    'File',p_sfile,'moved to',p_dfile.
    else.
    write : / 'Error Occured'.
    endif.
    Reward points if found helpful……
    Cheers,
    Chandra Sekhar.

  • Convert smartform as PDF from ABAP Webdynpro

    Hi,
    I want to convert smartform as pdf from ABAP webdynpro.
    Flow: SmartForm-->Generating Function Module -->Getting Output Data --> Converting OTF to PDF --> Open/Save PDF file in ABAP webdynpro.
    What are the sequence of function modules to be used for this?
    OR
    Is there any other way to convert smartform as pdf from ABAP webdynpro?
    plz give me the flow and FM'details clearly in detail.

    Look here https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785
    Cheers
    Graham Robbo

  • Using Crystal Report to create reports from ABAP

    Hello,
    We are currently using Jetform as the designer for our outputs like Invoice, Order confirmation, etc.....
    We would like to switch to Crystal instead, but don't really know where to start from.
    - We already have crystal on our B/W instance
    - The additional need for Crystal is in R/3, and would be triggered trough ABAPs.
    What I am looking for. I guess, is the equivalent to when:
    we call up smartforms from ABAP using the generated function modules
    we call up sapscript from ABAP using the predefine function call (write_form open_form close_form, etc)
    we call up Jetform using special control code along with the data, sent to a jetform configured printer
    => What kind of call would we then make to send data to Crystal Reports place holder and print them?
    => What kind basis set-up is needed to have to comunication between Crystal and SAP established?
    Thank you in advance for yours hints

    Hi,
    You will likely be able to access the tables directly using the Opensql driver using Crystal Reports.  I don't understand why you are assuming that an Infoset is necessary.  Can you point me to the documentation that states that an Infoset is necessary?
    In any case, if you want to create an Infoset, this is done in SQ02.  You need to make sure that you belong to a user group in order for Crystal Report to see the infoset.

  • What is the use of a proxy client to test web service from ABAP code?

    In NW640, we need to create a proxy client to test our web service from a ABAP code.
    Why is this so? What is the significance of a proxy client? Is this mandatory? Can we test the webservice from a ABAP code without proxy client?

    Hi Gopal,
    There are two types of proxies that can be generated from ABAP - the client proxy (to call an internet web service) and a server proxy (to communicate with XI). It sounds to me like you are looking for information about the client proxy, if so you can see the following link from SAP Help:
    http://help.sap.com/saphelp_nw04s/helpdata/en/e5/a68d10f4eb894087fc9c1c3f9ae433/frameset.htm
    Hope this helps.
    Sudha

  • How to run Java codes from ABAP

    Hi Gurus,
    I have .JAVA & .CLASS files which connect to the website through HTTPS connection and generates the TEXT file at C:\ by obtaining some data from WEB Site. This java files needs SSL certificate Which has been imported in SAP. How can i run the Java files from SAP R/3, Please help me.
    Thanks
    Ganesh

    hiii
    refer to following link..
    Java from ABAP?
    Re: Calling Java API from ABAP using JCo
    i hope it will solve your problem
    regards
    twinkal

  • Call (consume) a webservice from ABAP for dummies

    Hi
    I find the documentation for this topic very confusing. It a badly structured mix of documentation of client scenarios, server scenarios and worst of all a lot of XI nonsense.
    I need purely client scenario documentation without any info about XI and without any info about creating web services.
    I just need to know how to consume a web based webservice in ABAP program. Where can I find this docu?
    I have tried to generate proxies from different WSDL sources, but it always fails with different error messages.
    Can anyone suggest a simple WSDL webservice usefull for testing my setup?
    Best regards
    Thomas Madsen Nielsen

    You are right, the help files do mix consuming and creating, but they do provide a list of steps for consuming and what you need to do.  To consume a web service, the general steps you need to follow are:
    - Create an extendable package with use accesses SAI_SXMS, SAI_TOOLS, SAPPINT
    - Create a proxy class using the wizard in SE80 (right click on the package -> Create -> Enterprise Service) - the creation of the class depends on the WSDL document - you can either generate based on the url  for the WSDL or download the WSDL document and import it as a file in the wizard.  You may need to tinker with the WSDL document to get the class generation to complete successfully. Your WSDL is here: [http://maptp12.map24.com/map24/webservices1.5?soap=Map24Routing]
    - Create a logical port in LPCONFIG or SOAMANAGER (assumes NW 7.0 SP14 or later) with information in the WSDL
    - Create a program to consume the service method - it will look something like this (abbreviated):
    DATA: gv_client_proxy  TYPE REF TO zcwsbb_co_global_weather_soap,
          gv_sys_exception TYPE REF TO cx_ai_system_fault.
    DATA: gs_request   TYPE zcwsbb_get_weather_soap_in,
          gs_response  TYPE zcwsbb_get_weather_soap_out,
          gs_weather   TYPE zst_currentweather.
    DATA: gv_message   TYPE string.
    TRY.
        CREATE OBJECT gv_client_proxy.
        CALL METHOD gv_client_proxy->get_weather
          EXPORTING
            input  = gs_request
          IMPORTING
            output = gs_response.
      CATCH cx_ai_system_fault INTO gv_sys_exception.
        CALL METHOD gv_sys_exception->if_message~get_text
          RECEIVING
            result = gv_message.
        WRITE: gv_message.
        FREE: gv_client_proxy, gv_sys_exception.
        EXIT.
    ENDTRY.
    - Transform the response as required using ST or XSLT

Maybe you are looking for

  • Question for the experts... Two ISP's, one home network

    OK, I am about to give up on the EA2700... It has been a small nightmare that has cost me time and money. A bit of background here... We live way off grid, so far that being wired to it is not going to happen in my lifetime. We generate our own power

  • ECC 6.0 installation on external HD

    I have a dual boot laptop with XP and Win 2003 server. I have a 1 TB external HD connected to the laptop, on which i want to install ECC 6 and BI 7.0. I have installed Oracle and JDK as per requirement.But when SAP ECC 6.0 installation starts it does

  • Report Authorization issues after Authorization Migration in BI 7.0

    Hi SAPians, we are facing report access for the customers after migration of authorizations (3.x to 7.0). All these are Customer reports and need to restrict their customer codes only. In two ways, i have tried to resolved this. 1. Roles - Maintained

  • Attachments...still screwed up

    I continue to get those that I send attachments to that say they cannot view/open my simple attachments like .jpg photos and .pdf files. This continues to be a pain in the -ss! for me and those that I send attachments to. (dozens a day!) And was NOT

  • A Doubt on Customization

    Hi, I read the following in OAF dev guide Extension is extending the functionality of an aplication using - Adding new functional flows. - Extending or overriding existing functional flows. - Extending or overriding existing business logic. I underst