Passing custom DTO to input method...

Hi,
Im attempting to create a workshop web service that accesses an EJB control. The
method's input params require the passing of a custom built data transfer object
(bean) that contains itself other objects. is there any way to do this via a web
service thru workshop?

John,
A workshop web service (i.e. a JWS file) is analogous to a JSP/servlet. Any
class (bean) that needs to be passed to an EJB Control method should be
accessible to the contaning JWS.
So the bean and all the objects contained/referenced by the bean should be
available in any one of the following 3 ways:
1. System CLASSPATH
2. In the WEB-INF/lib or WEB-INF/classes directory of the Workshop project
3. As a Java file in the Workshop project directory.
I hope this answers your question. Do let me know if I can help further.
Regards,
Anurag
"John Bonham" <[email protected]> wrote in message
news:3e0f058e$[email protected]..
>
Hi,
Im attempting to create a workshop web service that accesses an EJBcontrol. The
method's input params require the passing of a custom built data transferobject
(bean) that contains itself other objects. is there any way to do this viaa web
service thru workshop?

Similar Messages

  • LSMW input method error-No Customizing entry defined for period indicator Y in logon language

    Hi,
    I am creating one material through direct input method and its showing error '
    No Customizing entry defined for period indicator Y in logon language'.
    I am passing PERKZ ( periodic indicator ) as blank from file.
    But when i am creating in foreground its automatically taking value 'M' and creating the material.
    And also when i hardcode the value 'M' in LSMW then also its showing same error.
    Can anyone please help urgently?
    BR
    Sumeet

    Check in O02K what is maintained.  As per your error message, External Period Indicator "Y" is missing for that logon language.
    G. Lakshmipathi

  • Customer Master Conversion - Direct input method

    Hi,
    I want to extend the sales area of the customers who are already existing using Direct Input Method. But I am getting the Error.
    Thanks
    Raghavendra

    Hi Raghavendra,
    Can you tell what error ur getting?Also which structure you are using ?  I think the structure BKNVV / BKNZA needs to be extend for this additional extended sales area.
    Also try to use Batch input seesion methos. in that you may get the structure name which we need to extend.
    Pradeep

  • Error while adding a custom field with Input help via AET

    Hi All,
    I need to add two custom field under Service orders at Item level in component BT140I_SRVP.
    One field is required to have the input search help f4 and autopopulates the second field
    I am able to add one field(not requiring help) successfully through AET .
    I have created one Zsearch_help in se11 and its successfully running  and Autopopulating seocnd field while I am testing it
    While adding second field through AET,I need to enter following details as -
    field label,search relevant ,serach help etc.
    When I type the name of my 'Zsearch_help' against field search help it gives me following error
    'Search help is not compatible'.
    Secondly,not getting getter and setter methods for the attrributes in BTAdminI.
    Last,please tell me if i create zhelp and activate it,would it automatically appear in the list on AETwhile assiging it to input field?
    Please help me out.Kindly be detailed as I am new to SAP CRM.
    Thanks,
    Shivani

    The question is answered in CRM 7.0 forum:
    Getting error while adding a custom field (with input help) through AET

  • Passing customer id(logged in user)  to BAPI

    Hi,
    I am creating a sales order application where in i have to pass the user id (customer  logged in through portal) .
    I have made the MODEL RFC as ticket, and meta data as user id password where i have passed the service user and password.
    Now my problem is that there will be 'N' customer ids in Portal but we are not creating any customer ids in SAP ECC. We are planning to pass the user id of portal logged in user to ECC (which will be customer id) and get the data based on the customer id passed.
    Question is how do i pass customer id to BAPI, ? Do i have to make the MODEL JCO as user/password or ticket should be fine as i am getting information for only customer logged in Portal ?
    How and where do i write the the following piece of code ? Should it be in wdDo init() or in the execute method of Controller ?
    try{
    IUser user = WDClientUser.getLoggedInClientUser().getSAPUser();
    IUserAccount[] acct = user.getUserAccounts();
    if(acct[0] != null)
    String strUserid = acct[0].getLogonUid();
    customer=strUserid.substring(0,strUserid.indexOf("."));
    if(customer.equalsIgnoreCase(customer))
    wdContext.currentYOURRFC_InputElement().setCustomer(customer);
    }catch(Exception ex)
    ex.getMessage();
    Should the above code be in the component controller before i execute the BAPI ?
    your help is appreciated.
    Regards
    PN

    Hi Portal Newbie,
    Your tickets and userid/password works as following:
    Tickets: When u select SAP logon ticket (SLT), EP generates a ticket with the user id of the logged in user, attached to the ticket. Now when it reaches R/3 it will check for the same user id. If no such user id is exits it will throw an error. To over come this u can define a reference system where u can do the user mapping.
    UIDPD: When u select this option u have to manually enter the user id and password in JCo. So when a EP user logs in the UID and password mentioned in JCo will be passed, not the EP user id, and R/3 will look for that user and execute the BAPI. And i guess u dont want that.
    Solution:
    As far as i have understood u dont want the same number of users in EP and R/3, (might be a licensing issue) and want only a few user IDs in R/3.
    1. Select UIDPD in JCo, and in your BAPI add another field like "user_id" through which u can send the user id to R/3 and execute a query which shall return the value corresponding to that particular user. [issue: there is a limit to the JCo connections created for a user.] Also there is an api to handle JCo connection in webdynpro. There u can set the user id, password and client number. But here also the user id that you set should be present in R/3.
    2. Select SLT in JCo and configure a reference system. You have to perform user mapping for every user. Now when a user logs in the ticket will contain the user id of EP and also the one u have mapped, ie the R/3 user. Make sure the R/3 user id exists in R/3. Now the sy-unam in BAPI will contain the R/3 user id. I guess there is an option to retrieve the EP user id from the ticket, but im not sure.
    In your kind of scenario its always recommended to have same number of user ids in EP and R/3. If user names are same then there is no need to configure reference system.
    Regards,
    Piyush.
    ps: reference system is just a system that we create in EP but in UME settings we have to specify this system as the reference system.

  • LSMW Direct Input Method - Change Documents

    Hello experts,
    Could anyone please tell me how to enable the change documents(not just runtime) for LSMW direct Input method? There is also one option "Change Documents" in the last step of the process, will this write into any table that I see the changes later If I run the last step with selected this  option? If yes, What are the application (customer master data, vendor master data, material master data, etc) specific tables?
    Is there anyway that I could populate this method changes into the CDHDR & CHPOS tables?
    SAP documenation on this:
    To enter the data into the *corresponding database tables directly*, the system calls a number of function modules that execute any necessary checks. In case of errors, the direct input technique provides a restart mechanism
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/fa/097174543b11d1898e0000e8322d00/content.htm
    Since this tool writing data into database tables directly skips the CDHDR & CDPOS recording..
    Is there any other possible way for the complete change logs (change pointers???)? ( Or only table logging?)
    Please share your experience on this.
    Thanks,
    Himadama

    No response received..

  • LSMW - Direct Input Method - AS91 - RAALTD11

    Hi All,
    I am trying to master data upload of assets into SAP. I am doing it using LSMW - Direct Input method.
    I am getting a lot of errors:
    - No valid cost center was entered --- Whereas the cost center entered is valid.
    - Unexpected record type: B --- whereas I have not specified any record type.
    - Company code 0315 already contains assets in the number range T4 --- Whereas I have run the LSMW only for company code 0312 and with just a single record.
    - And many more such errors.
    Please advise if I am doing something wrong.
    Also I want to know to which field shall I pass the Cumm Acquis Val and the Net Book Value.
    I want to know the corresponding fields in the BALTD and BALTB structures for these fields.
    My flat file contains the below fields:
    - ANLKL    Asset Class
    - BUKRS   Company Code
    - TXT50     Description
    - AKTIV    Capitalized On
    - KOSTL   Cost Center
    - ORD42    Allowed Capital Allowances?
    - EAUFN   Investment Order
    - NDJAR   Planned Useful Life in Years
    - NDPER  Planned Useful Life in Periods (months)
    - NDABJ   Expired Useful Life in Years
    - NDABP  Expired Useful Life in Periods (months)
    - ??    Cumm Acquis Value
    - ??    Net Book Value
    I don't know how to map the last two fields. Although I could find another field ANBTR01 in BALTB structure. But then which field tomap to this structure and to which field shall I map the remaining one.
    Please advise.
    Thanks & Regards,
    Namrata

    Hi All,
    I have now removed the BALTB structure and am filling only teh BALTD structure. I am not getting any errors and  the asset is getting created.
    But when I go and check for the asset in AS93 / AS92, the depr areas (planned and expired life in years and planned and expired life in periods) are not getting populated in SAP. Also in the Takeover Values tab, ***.acquis.val and the Net book value fields are not getting populated.
    Below is the mapping of all the fields:
    BALTD-MANDT = 600 (GETTING POPULATED ITSELF)
    BALTD-BUKRS = SOURCE-BUKRS
    BALTD-ANLKL = SOURCE-ANLKL
    BALTD-TCODE = AS91 (HARDCODING IN LSMW)
    BALTD-RCTYP = A (GETTINGPOPULATED ITSELF)
    BALTD-AKTIV = SOURCE-AKTIV
    BALTD-ORD42 = SOURCE-ORD42 (ALWD)
    BALTD-EAUFN = SOURCE-EAUFN
    BALTD-TXT50 = SOURCE-TXT50
    BALTD-KOSTL = SOURCE-KOSTL
    Below are the dep areas fields values and the takeover values.
    BALTD-NDJAR01 = SOURCE-NDJAR01 (PLANNED LIFE IN YEARS)
    BALTD-NDPER01 = SOURCE-NDPER01 (PLANNED LIFE IN PERIODS)
    BALTD-NDABJ01 = SOURCE-NDABJ01 (EXPIRED LIFE IN YEARS)
    BALTD-NDABP01 = SOURCE-NDABP01 (EXPIRED LIFE IN PERIODS)
    BALTD-KANSW01 = SOURCE-KANSW01 (CM.ACQUIS.VALUE - IN TAKEOVER VALUES TAB)
    BALTD-KANSW02 = NET BOOK VALUE IN TAKEOVER VALUES TAB.
    BALTD-WRTMA = SOURCE-WRTMA (SUGGESTED BY SOMEONE ON SDN FOR NET BOOK VALUE)
    None of the above dep areas and takeover values fields (fields in bold) are getting populated in SAP.
    Please help and advise how to proceed with this.
    Regards,
    Namrata

  • Using Boshiamy chinese input method on iPad Mini2?

    Hi there,
    I've been struggling a lot on inputting tranditional chinese on my iPad and is wondering if the community can assist with installing or supporting the use of Boshiamy chinese input method on iPad please? There are thousands and thousands of Boshiamy users in Asia, and it'd be greatly helpful if the installation/support is enabled.
    Can someone please advise or come forward with me on this request?
    Many thanks!
    Jas'

    There is presently no way to install custom keyboards on any iOS device, but you can ask Apple to add this via
    http://www.apple.com/feedback
    Have a look at this app, which may be useful for some purposes:
    https://itunes.apple.com/tw/app/id369906264?mt=8

  • Can anybody tell me why "Direct Input Method of BDC" said to be Obselete?

    Why it is said that "Direct Input Method of BDC" is obselete?

    hi,
    Direct Input:
    A recent technique to input data safely. An alternative to batch input.
    With direct input, the SAP function modules execute the consistency checks. However with batch input, these consistency checks are executed with help of the screens. This means that direct input has considerable performance advantages. But there are a few programs for direct input, you can use them if it accomplishes your goal. Direct Input programs work like that they update database tables directly. As you know that it is forbidden to update SAP database tables directly, since consistency and security should be considered. Exceptions are these direct input programs. So you are not able to write custom ABAP direct input programs. But of course you can write ABAP programs to update custom database tables (Z tables), if you are sure all about consistency.
    SAP has created direct input programs because SAP wanted to enhance the batch input procedure, since batch input is slower. SAP offers the direct input technique, especially for transferring large amount of data. In contrast to batch input, this technique does not create sessions, but stores, updates, inserts data directly. To enter the data into the corresponding database tables directly, the system calls a number of function modules that execute any necessary checks. In case of errors, the direct input technique provides a restart mechanism. However, to able to activate the restart mechanism, direct input programs must be executed in the background only. To maintain and start these programs, use program RBMVSHOW or transaction BMV0.
    Examples for direct input programs are:
    RFBIBL00 - FI
    RMDATIND - MM
    RVAFSS00 - SD
    RAALTD11 - AM
    RKEVEXTO - CO-PA
    I hope it helps.
    In contrast to batch input, this technique does not create sessions, but stores the data directly. It does not simulate the online transaction. To enter the data into the corresponding database tables directly, the system calls a number of function modules that execute any necessary checks. In case of errors, the direct input technique provides a restart mechanism. However, to be able to activate the restart mechanism, direct input programs must be executed in the background only. Direct input checks the data thoroughly and then updates the database directly.
    cheers!'sri

  • In BADi , How to pass the values between two Method

    Hi Experts,
    We have two methods in BADis. How to pass the value  between two Methods. Can you guys explain me out with one example...
    Thanks & Regards,
    Sivakumar S

    Hi Sivakumar!
    Create a function group.
    Define global data (there is a similiar menu point to jump to the top include).
    Create one or two function modules, with which you can read and write the global data.
    In your BADI methods you can access the global data with help of your function modules. It will stay in memory through the whole transaction.
    Regards,
    Christian

  • How to call a java method so I can pass a file into the method

    I want to pass a file into a java method method from the main method. Can anyone give me some help as to how I pass the file into the method - do I pass the file name ? are there any special points I need to put in the methods signature etc ?
    FileReader file = new FileReader("Scores");
    BufferedReader infile = new BufferedReader(file);
    Where am I supposed to put the above text - in the main method or the one I want to pass the file into to?
    Thanks

    It's a matter of personal preference really. I would encapsulate all of the file-parsing logic in a separate class that implements an interface so that if in the future you want to start taking the integers from another source, e.g. a db, you wouldn't need to drastically alter your main application code. Probably something like this, (with an assumption that the numbers are delimited by a comma and a realisation that my file-handling routine sucks):
    public class MyApp{
    public static void main(String[] args){
    IntegerGather g = new FileIntegerGatherer();
    Integer[] result = g.getIntegers(args[0]);
    public interface IntegerGatherer{
    public Integer[] getIntegers(String location);
    import java.io.*;
    public class FileIntegerGatherer implements IntegerGatherer{
    public Integer[] getIntegers(String location){
    FileInputStream fs=null;
    try{
    File f = new File(location);
    fs = new FileInputStream(f);
    byte[] in = new byte[1024];
    StringBuffer sb = new StringBuffer();
    while((fs.read(in))!=-1){
    sb.append(new String(in));
    StringTokenizer st = new StringTokenizer(sb.toString(),",");
    Integer[] result = new Integer[st.countTokens()];
    int count = 0;
    while(st.hasMoreTokens()){
    result[count]=Integer.valueOf(st.nextToken());
    count++;
    catch(IOException e){
    //something sensible here
    finally{
    if(fs!=null){
    try{
    fs.close();
    catch(IOException f){
    return result;
    Once compiled you could invoke it as java MyApp c:\myInts.txt
    Sorry if there are typos in there, I don't have an ide open ;->

  • Could not find Simplified Chinese input method when using FormsCentral

    Hi
    When I creating files using FormsCentral, I could not find the input method of Simplified Chinese, therefore, the document I created look strange. The font is not what I wanted but I really could not find Simplified Chinese to edit the document.  Could anyone please show me how should I do it or where I can download the font pack?

    We currently do not support Chinese forms.
    Randy

  • On iOS7, Korean Language Input Method with serious error.

    Korean Input Method for iOS7 has serious problems with bluetooth keyboard.
    It has absolutely incorrect state transition for the keyboard typings.
    Keyboard input and cursor moving are independently acting.
    On the word processing apps, when the line changing occurs while typing, error comes on the first word.
    It looks like to have very poor performance while typing.
    clearing last status of input and transiting to a new state to a new word-syllable are not working properly.
    Input method on iOS5 is much stable and better than on iOS7.
    iOS7 Korean Input Method really makes me annoying.

    For Apple to see this, you need to repost it at
    http://www.apple.com/feedback

  • PO creation using LSMW through batch input method

    Hi, I am new to working with LSMW and i have completed a project for creating purchase orders using the direct data input method. I need to do the same using batch input method, however in the maintain structure relationship step, it is only allowing me to assign one structure to the recording that i have done, however in po creation we need separate (nested) structure for header and line item, could anybody help me past this please?

    Hi Rudra!
    OK, now you just know, why you have only one line, not multiple PO item lines. To get a dynamic number of items, you need a complex program - just like standard direct input.
    If you need a field, which is not part of this program, don't try to write your own program for batch input - it's just to much work before you have a good result.
    You can use Bapi method instead with BAPI_PO_CREATE1. This can handle a lot of fields and there is some documentation available how to fill the Bapi.
    If this looks to complicated in the first moment, think about creation of POs via direct input and a small batch recording to change your additional field(s) afterwards. (You can select EKPO table to generate list of 'wrong' migrated orders for input in LSMW.) Use field 'Item' in the bottom of ME22 to position your desired line in first screen line, just change one PO-line after one other (every time a 'save' -> no problem with different number of lines / PO).
    Regards,
    Christian

  • LSMW direct input method

    Hi
      What is the procedure to include a specific program / report in the drop down box of program name of Direct Input method in LSMW?
    What is the diff. between Physical path and Logical path?
    How can we give our input data using logical path when we execute some standard batch or direct input programs?
    Ex. RMDATIND.

    http://help.sap.com/saphelp_erp2005vp/helpdata/en/87/f3ae63e68111d1b3ff006094b944c8/frameset.htm
    Regards,
    Amit

Maybe you are looking for