Creation of Customisation file from WLST Script in OSB

Hi,
Please help in creating Customisation file in OSB from WLST Scripts

Hi,
Please refer -
Create Customization File in OSB 10g with WLST script
http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/deploy/config_appx.html
http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/javadoc/com/bea/wli/config/customization/Customization.html
Regards,
Anuj

Similar Messages

  • Creating an RDI  file from SAP script

    Hello All,
    I would like to create an RDI file from SAP Script.
    Please can anyone let me know how do we do it programmatically.
    I am aware of the option of setting RDI parameter to 'X'.
    However my requirement is to allow user to have a print preview option and simulatenously create RDI file .
    Thanks and Regards
    Amruta

    See:
    http://discussions.apple.com/message.jspa?messageID=11535851#11535851

  • BAPI for automatic Pr creation witth multiple files from excel sheet

    I have written a programm  for automatic PR creation  with the help of bapi , where its picks data from excel sheet and makes PR .It is picking excel files from one folder(Files) for PR creation and moving to another folder(Files sucess).
    now the problem is if Folder (Files) contains one excel sheet ,PR is created fine , but if the Folder(Files) have multiple excel sheet ,its is creating 1st PR right, but next PR's contains all the line item of 1st PR , 2nd PR and so on .can anyone suggest me where is the problem in codes.
    types : begin of x_file ,
            key1(10),
            pur_grp(4),
            maktx(40),
            plant(4) ,
            req(10),
            s_qty(13),
            wbs(24),
            gl(10),
            trackno(10),
            supl(4),
            deladd(255).
    types : end of x_file .
      data : str5 type char10.
      data : mm type char2.
      data : yyyy type char4.
      data : dd type char2.
      data : str9 type char10.
      data : str6 type char10.
      data : month type char2.
      data : year type char4.
      year = sy-datum+0(4).
      month = sy-datum+4(2).
      dd = sy-datum+6(2).
      yyyy = sy-datum+0(4).
      mm = sy-datum+4(2).
      dd = sy-datum+6(2).
      clear str6 .
      clear str5.
      concatenate  dd'.' month '.' year into str5 .
      concatenate  yyyy mm dd into str6 .
    DATA : file type rlgrap-filename .
    data : it_file type table of x_file .
    data : wa_file type x_file .
    data : it_header type table of x_file .
    data : wa_header type x_file .
    *&  Internal Table For Define Row and Coloum Postion
    data: col_start type i value 1 ,
          row_start type i value 2,
          col_end type i value 256 ,
          row_end type i value 65000 .
    *&  Internal Table For Retrieve  Data From Excel
    *data: excel_bdcdata like kcde_cells occurs 0 with header line.
    *data: excel_bdcdata1 like kcde_cells occurs 0 with header line.
    data: excel_bdcdata like ALSMEX_TABLINE occurs 0 with header line.
    data: excel_bdcdata1 like ALSMEX_TABLINE occurs 0 with header line.
    data: it_index type i.
    DATA : IT_INDEX1 TYPE I.
    *&  Define Field Symbol
    field-symbols: <fs> .
    data :   bdcdata like bdcdata    occurs 0 with header line.
    data :   messtab like bdcmsgcoll occurs 0 with header line.
    data : req_items type table of bapiebanc .
    data : wa_req_items type bapiebanc .
    data : req_acc_asg type table of bapiebkn.
    data : wa_req_acc_asg type bapiebkn.
    DATA : RETURN LIKE BAPIRETURN OCCURS 0 WITH HEADER LINE .
    *data : return type table of     bapireturn.
    *data : wa_return type bapireturn .
    data : number type ebeln .
    *****************************MOVE FILES******************************
    data : xsource type string .
    data : xdestin type string .
    data : destin1 type string .
    data : destin2 type string .
    DATA : DEST1 TYPE STRING.
    DATA : DEST11 TYPE STRING.
    DATA : DEST2 TYPE STRING.
    DATA : DEST22 TYPE STRING.
    data : sou_dir_name like SALFILE-LONGNAME.
    data : tar_dir_name like SALFILE-LONGNAME.
    data : tar_dir_name1 like SALFILE-LONGNAME.
    data : sou_filename like EDI_PATH-PTHNAM .
    data : tar_filename like EDI_PATH-PTHNAM .
    data : filename1  type string .
    data : tar_filename1 like EDI_PATH-PTHNAM .
    data : file_itab like SALFLDIR occurs 0 with header line.
    data : wa_file_itab like SALFLDIR.
    data : file_count type i .
    data : dir_count type i.
    data : dir_table like sdokpath occurs 0 with header line.
    data : file_table like SDOKPATH occurs 0 with header line.
    data : wa_file_table like sdokpath.
    data : strr type string ,
           str1 type string ,
           str2 type string ,
           str3 type string .
    DATA : PA_VAL TYPE CHAR1.
    sou_dir_name = 'D:\barcodes\files\'.
    tar_dir_name = 'D:\barcodes\files-success\'.
        "success folder.
    CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
      EXPORTING
        DIRECTORY  = sou_dir_name
        FILTER     = '.'
      IMPORTING
        FILE_COUNT = file_count
        DIR_COUNT  = dir_count
      TABLES
        FILE_TABLE = file_table
        DIR_TABLE  = dir_table
      EXCEPTIONS
        CNTL_ERROR = 1
        OTHERS     = 2.
    IF SY-SUBRC <> 0.
    ENDIF.
    loop at file_table into wa_file_table.
    clear  :  strr , str1 , str2 , str3 .
      strr = wa_file_table-PATHNAME .
      concatenate sou_dir_name strr into str1 .
      concatenate tar_dir_name strr into str2 . " success
      concatenate tar_dir_name1 strr into str3 .         " failed
    FILE = STR1 .
    *start-of-selection.
    *&  Function For Retrieve Data From Excel
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        filename                      = FILE
        i_begin_col                   = col_start
        i_begin_row                   = row_start
        i_end_col                     = col_end
        i_end_row                     = row_end
      tables
        intern                        = excel_bdcdata
    EXCEPTIONS
       INCONSISTENT_PARAMETERS       = 1
       UPLOAD_OLE                    = 2
       OTHERS                        = 3.
      IF sy-subrc NE 0.
    WRITE : / 'File Error'.
    EXIT.
    ENDIF.
      loop at excel_bdcdata.
        translate excel_bdcdata to upper case .
        move excel_bdcdata-col to it_index.
        assign component it_index of  structure  wa_file to <fs> .
        move excel_bdcdata-value to <fs>.
        at end of row.
          append wa_file to it_file .
            clear wa_file.
        endat.
      endloop.
    sort it_file by key1. "pur_grp maktx plant  .
    it_header[] = it_file[].
    delete adjacent duplicates from it_header comparing key1 pur_grp maktx
    plant .
    data : h_item(5) type n .
    data : h_pack(10) type n .
    data : line_no(5) type n .
    data : ln_no(5) type n .
    loop at it_header into wa_header .
    ln_no = 1.
    h_item = h_item + 10.
    h_pack = h_pack + 1.
    wa_req_items-preq_item = h_item .
    wa_req_items-doc_type = 'BOM'.
    wa_req_items-pur_group = wa_header-pur_grp .
    wa_req_items-MATERIAL = wa_header-maktx .
    wa_req_items-plant = wa_header-plant .
    wa_req_items-pckg_no =  h_pack .
    wa_req_items-deliv_date = str6 .
    wa_req_items-item_cat = '0'.
    wa_req_items-acctasscat = 'P'.
    *wa_req_items-distrib = '2' .
    **wa_req_items-gr_ind = 'X'.
    wa_req_items-ir_ind = '2'.
    wa_req_items-purch_org = 'TISL' .
    wa_req_items-QUANTITY =  wa_header-s_qty.
    wa_req_items-PREQ_NAME =  wa_header-req.
    wa_req_items-SUPPL_PLNT = wa_header-supl.
    wa_req_items-trackingno = wa_header-trackno.
    append wa_req_items to req_items .
    clear wa_req_items.
    wa_req_acc_asg-preq_item = h_item .
    wa_req_acc_asg-g_l_acct = wa_file-gl .
    WA_req_acc_asg-wbs_elem  = wa_header-wbs .
    append wa_req_acc_asg to req_acc_asg .
    clear wa_req_acc_asg.
    h_pack = h_pack + 1  .
    endloop.
    clear ln_no .
    ***BREAK-POINT.
    *& BAPI FUNCTION
    call function 'BAPI_REQUISITION_CREATE'
    importing
       number                               = number
      tables
        requisition_items                   = req_items
       requisition_account_assignment       = req_acc_asg
       return                               = return .

    Can someone please give me sol........

  • How run a batch file from VBS script?

    I have written a script in which I create a batch file that I want to run. Running it from the Start menu with "Run..." works fine but I would like to do it automatically from the script. I can't find a command that works but I am a beginner, so I'm hoping someone's got a solution?!

    Hi again!
    Thank you for your help but I've just discovered that my problem probably doesn't have to do with the way that I call for the batch file. It's more like this:
    The batch file is run but it only does its job some of the times... The batch contains one name of a converter application (Convert.exe) and the names of some databases and files. I've been told that the conversion should work if Convert.exe is located in the same folder as the files. Which it also does, if I run the batch from "Run..." but not from my code.
    I had it working for a while when I had fiddled (as I said, I'm a beginner at this) with setting some drives, such as userDrv and changing some paths in the script settings. Since I didn't really know what I was doing though, I didn't save these settings when closing down DIAdem and now it's not working again. When it worked, it only worked for the file where my .VBS was saved. The point of the program is to convert files in different folders so that wasn't enough.
    Just for clearity: I can't write the name as "C:\My Folder..." because the batch file name and the folder it is situated in is different each time so I have variables for the path and the batch, but that part seems to work. (Call ExtProgram(batFilename_) where batFilename_ includes the path).  
    So I guess what I need to understand is how the different drives work or maybe I need to somehow change my path settings?

  • Issue in Creation of XML file from ABAP data

    Hi,
    I need to create a XML file, but am not facing some issues in creation of XML file, the in the required format.
    The required format is
    -<Header1 1st field= u201CValueu201D 2nd field= u201CValueu201D>
       - <Header2 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 10 fields>
              <Header3 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 6 fields/>
              <Header4  1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 4 fields/.>
               <Header5 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 6 fields/>
          </Header2>
       </Header1>
    Iu2019m using the call transformation to convert ABAP data to XML file.
    So please anybody can help how to define XML structure in transaction XSLT_TOOL.
    And one more thing, here I need to put the condition to display the Header 3, Header 4, Header 5 values. If there is no record for a particular line item in header 3, 4 & 5, I donu2019t want to display full line items; this is only for Header 3, 4 & 5.
    Please help me in this to get it resolved.

    Hello,
    you can use CALL TRANSFORMATION id, which will create a exact "print" of the ABAP data into the XML.
    If you need to change the structure of XML, you can alter your ABAP structure to match the requirements.
    Of course you can create your own XSLT but that is not that easy to describe and nobody will do that for you around here. If you would like to start with XSLT, you´d better start the search.
    Regards Otto

  • Creation of XML file from RFC

    Hi Experts,
    Iam getting input parameters to my RFC from JAVA.
    With that data i have to create XML file from my RFC, and i have to send that file to third party.
    Could you please tell me the total procedure.
    I know how to create RFC, i need how to create XML and how to send to third party.
    Thanks and regards,
    Kumar.

    HI,
    Follow the procedure :
    1.Get the schema by using add generated items according to particular RFC.
    2.Then  create the target schema.
    3.Create the map file and mapp both the schemas.
    After deployement follow the below steps
    1.In BizTalk administration console  create the send port to send the resulted XML to particular location.
    2.Then configure the receive port with values(pipeline=xmlreceive;clientid,userid,pwd,sap gateway host;sap gateway service to connect the sap.
    Now  start the application !
    Let me know if u still have a problem ?

  • Call Batch file from MAxl Script

    Is it possible to call a windows batch file from a maxl script

    If you look at the documentaion you will see there is a shell command available

  • How to download a file from Oracle UCM using OSB

    Hi,
    How can I download a file from Oracle UCM and save it on a filesystem using OSB 11.1.1.5.
    Thanks

    UCM supplies webservice interfaces which let you retrieve the filecontent by soap calls from UCM (http://ucmhost/_dav/cs/idcplg for example). (maybe you should enable some settings on ucm to have this webservice interface getting published).
    This services for example has 2 operations getFileByID and getFileByName.
    So you can just call these services from within OSB.
    After that you need to do some tests if you eitherway need to create a file-transport business-service and call this one from your proxy service or create a messageType proxyservice (binary)  which calls this file-transport business service to be able to write fo filesystem.
    I think for the OSB book i used a jca file adapter generated in Jdeveloper and used that one to write to filesystem.

  • PS CS4 VBscript - Open ai file from Photoshop script

    Can anyone tell me what the open options would be to use the application.open method to open a Illustrator (AI) file. I want to open it (and rasterize it) from within Photoshop, but I can not find the correct open options to do this?
    Thanks,
    Sheldon

    Have your script open the file using "open as" PDF and use the parameters from that class.

  • Return Files from shell script

    I have an automator workflow I'm working on that will take FLACs and convert them to AIFF. I do the brunt of the work in a bash script. I have that working just fine, but I'm wanting to output an array (or however I need to do it) of files to then pass to "Import Audio Files". How could I output something that "Import Audio Files" will like from my shell script? Thanks.

    ... nevermind. *slaps himself in the head* Just echoing works...

  • Creation of flash file from Device Central failing

    Hi,
    I'm currently trying to create a new flash document from Device Central and the application is throwing the following error:
    Cannot create new document. The xfl template document is either missing or corrupted.
    I am also unable to test my flash files in Device Central via Test Movie.
    This function was working fine until a couple of days ago.
    Has anyone had any similar issues? I am running Master Collection CS5.5 for Mac.
    Any assistance would be appreciated.

    For anyone who has this problem in the future, I have managed to get it working again by doing a complete reinstall of Master Collection.

  • Creation of pdf-files from a VBA programming of a database application

    In a kind of form letter practice through a modular programming in Microsoft Access individual invoices created as PDF files shall be sent as serial e-mails.
    Example: After a seminar, for example 50 people shall receive individual invoices with invoice number and the respective address.
    After creation we don’t want the pdf-documents to be displayed on the screen. It should be automatically transferred through our MS-Access-programming to Outlook for serial e-mails.
    The functionality of the automation is positioned in a VBA module (Visual Basic for Application) of a MS Access form.
    At this point Acrobat PDF should be controlled by MS-Access VBA programming (and not manually by the user).
    To implement such an automatic, we need a documentation of the interfaces for the later in the text referred Acrobat objects, which can be addressed in the MS-Access VBA Programming.
    References in Microsoft Access:
    Adobe Acrobat 10.0 Type Library
    Acrobat Access 3.0 Type Library
    Acrobat Distiller
    Objects according to Microsoft Access Object Browser:
    AcroApp
    AcroAVDoc
    AcroAXDoc
    AcrobatAccessLib
    ACRODISTXLib
    AcroHiliteList
    AcroPDDoc
    AcroPoint
    AcroRect
    AcroTime
    Among the listed objects and their properties and methods, we need a comprehensive description.
    Are there special *. DLL or *. chm or *. hlp - files
    which can be addressed by MS-Access directly to automatically generate PDF files?

    Google the following:
    Software\Adobe\Acrobat Distiller\PrinterJobControl\
    I have done this using a Report I designed in MS Access, you basically print to the 'ADOBE PDF' printer. No need to use any of the References you listed.
    I loop thru a recordset of Customer IDs and generate my reports. I do the Outlook piece after I have generated the pdf files.
    My Access report has no RecordSet, it is set on the fly, using the following:
    Private Sub Report_Open(Cancel As Integer)
    Me.RecordSource = sqlReport
    End Sub
    sample code:
    sub genReports
    Dim lRC
    Dim sReg
    Dim emailPath As String
    Dim accessPath As String
    Dim strKey As String
    Dim rsCust As New ADODB.Recordset
    Dim rsRecs As New ADODB.Recordset
           emailPath = currentproject.path & "\email\"
           accessPath = SysCmd(acSysCmdAccessDir)
           accessPath = accessPath & "MSACCESS.EXE"
           strKey = "Software\Adobe\Acrobat Distiller\PrinterJobControl\"
            Set sReg = GetObject("winmgmts://./root/default:StdRegProv")
           'PrinterJobControl key
           lRC = sReg.CreateKey(HKEY_CURRENT_USER, strKey)
           'query to get Customer IDs     
           rsCust.Open "qryReportCust", CurrentProject.Connection, adOpenStatic
           Do Until rsCust.EOF
            strCust =rsCust!CustID
            'sqlReport is a function that uses CustID as parameter
            rsRecs.Open sqlReport, CurrentProject.Connection, adOpenStatic
            If Not rsRecs.BOF Then
               lRC = sReg.SetStringValue(HKEY_CURRENT_USER, strKey, _
                                         accessPath, emailPath & strCust & ".pdf")
                DoCmd.OpenReport "rptCustomerInvoice", acViewNormal
            End If
            rsRecs.Close
            Set rsRecs = Nothing
       rsCust.MoveNext
        Loop
       rsCust.Close
    end sub

  • Launching an external file from jsfl script

    I've written a jsfl script which exports the frames of a
    Flash movie as pngs. I've also written a Photoshop .jsx script
    which takes the pngs and processes them. I was wondering if there
    was a command available in jsfl that could launch the .jsx file
    once the Flash process was finished?
    Cheers guys!

    mburgos,
    Take a look at this doc for starters:
    http://download-east.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/up_dn_files.htm
    Unless the end users have mapped drives to those documents, that's not going to work. Is this path just a pointer to the file on the server (if so, why not a BFILE)?
    chet

  • Generating customization file from WLST source

    Hi all,
    starting from http://e-docs.bea.com/alsb/docs30/javadoc/index.html?com/bea/wli/sb/management/configuration/ALSBConfigurationMBean.html I'm trying to translate the below java code:
    for (QualifiedEnvValue qev : alsbSession.findEnvValues(evquery)) {
    if (qev.getValue() instanceof String && qev.getValue().toString().startsWith(prefix)) {
    into WLST code ...
    But the problem is the translation of 'instanceof String'.
    I'm trying in different ways but I got always an error.
    I tried with:
    1) if isinstance(myValue, str): -> str is unknown
    2) if isinstance(myValue, String):
    and from java.lang import String
    -> no error but the behaviour is different from what I expect
    Any hints ?
    Regards
    ferp

    Hi all,
    starting from http://e-docs.bea.com/alsb/docs30/javadoc/index.html?com/bea/wli/sb/management/configuration/ALSBConfigurationMBean.html I'm trying to translate the below java code:
    for (QualifiedEnvValue qev : alsbSession.findEnvValues(evquery)) {
    if (qev.getValue() instanceof String && qev.getValue().toString().startsWith(prefix)) {
    into WLST code ...
    But the problem is the translation of 'instanceof String'.
    I'm trying in different ways but I got always an error.
    I tried with:
    1) if isinstance(myValue, str): -> str is unknown
    2) if isinstance(myValue, String):
    and from java.lang import String
    -> no error but the behaviour is different from what I expect
    Any hints ?
    Regards
    ferp

  • Write Special Characters in PDF file from SAP Script

    Hi there,
    Need a quick help...
    We are converting SAP Script to PDF using the function module CONVERT_OTF
    and saving the file on presentation server using GUI_DOWNLOAD...
    But in certain cases where the item text is maintained with some special
    characters like @#$% u03B1 u03B2 u03B3 u03B4 ®... then, some of these characters are seen
    as junk/garbage characters...
    how do we handle this??
    P.S. Our Forms are already using Korean Font...
    Any help is highly appreciated
    Kind Regards,
    Tanuja

    Hi,
    Use the FM  CONVERT_OTF to get the Binary data and  down load it as PDF .
    sample
    */ Convert the OTF data into PDF.
        call function 'CONVERT_OTF'
         exporting
           format                      = 'PDF'
         importing
           bin_filesize                = lv_bin_filesize
            bin_file                   = lv_xstring
          tables
            otf                        = lt_otf_data-otfdata[]
            lines                      = lt_pdf_data
         exceptions
           err_max_linewidth           = 1
           err_format                  = 2
           err_conv_not_possible       = 3
           err_bad_otf                 = 4
           others                      = 5  .
    */ Convert the Xstring data into PDF
        call method cl_document_bcs=>xstring_to_solix
          exporting
            ip_xstring = lv_xstring
          receiving
            rt_solix   = lt_mess_att .
    Then down load the table lt_mess_att  with extension PDF.
    Edited by: UmaMaheswaraRao Surapaneni on Apr 1, 2009 5:44 PM

Maybe you are looking for

  • Imessaging won't work after yosemite update...how do I fix this?

    I'm connected to wi-fi, yet imessages won't send or receive. It worked until I updated my MacPro to Yosemite. How do I fix this?

  • JDK 1.5 compilation error !!!

    Hi all, My source code looks like this: * Test.java * Created on November 9, 2004, 6:20 PM package test; * @author Administrator public class Test /** Creates a new instance of Test */ public Test() * @param args the command line arguments public sta

  • Program with list and select button

    Hi, is there a program module that displays a list and when user selects an item and clicks on some button the program returnes selected item. I just want to use that kind of program as a template. Thank you.

  • Connecting Guitar

    Using a 1/4 to 1/8 adapter to connect an electric guitar directly to the Audio In port. System preferences < Sound < Input is set to Line-In. Output is set to Built-In Output. In GB, Track Info is set to Guitar, No Effect. Monitor is on and I've trie

  • "Color in system" not activated in Enjoy Theme

    Hi experts, I can set different color for different systems (DEV, QUA , PROD) but my user can't. After logging in a system, in option, the "color in system" is blank for my user for Enjoy Theme : he has this message "to change/set settings on this pa