How to create a node in an interface in SFP transaction

Dear All
I am designing an Adobe forms template for which I am creating an interface.
To pass the values I need to create a main node which contains both subnodes and attributes.
How can we create a node for an interface?
Just to add, this node will get its data  at run time from an ABAP web dynpro component. this component will get the data after executing some function modules.
Regards
Vineet Vkram

Hi Vineet,
                   There is no way to create a node in the interface. But DDIC type interface can be created with similar structure to the node in the ABAP Web Dynpro Component.
Ranganathan.

Similar Messages

  • How to create a node with attributes at runtime in webdynpro for ABAP?

    Hi Experts,
             How to create a node with attributes at runtime in webdynpro for ABAP? What classes or interfaces I should use? Please provide some sample code.
    I have checked IF_WD_CONTEXT_NODE_INFO and there is ADD_NEW_CHILD_NODE method. But this is not creating any node. I this this creates only a "node info" object.
    I even check IF_WD_CONTEXT_NODE but i could not find any method that creates a node with attribute.
    Please help!
    Thanks
    Gopal

    Hi
       I am getting the following error while creating a dynamic context node with 2 attributes. Please help me resolve this problem.
    Note
    The following error text was processed in the system PET : Line types of an internal table and a work area not compatible.
    The error occurred on the application server FMSAP995_PET_02 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WD_CONTEXT_NODE~GET_STATIC_ATTRIBUTES_TABLE of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: GET_REF_TO_TABLE of program CL_SALV_WD_DATA_TABLE=========CP
    Method: EXECUTE of program CL_SALV_WD_SERVICE_MANAGER====CP
    Method: APPLY_SERVICES of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: REFRESH of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE_DATA of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~UPDATE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_VIEW~MODIFY of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMPONENT~VIEW_MODIFY of program CL_SALV_WD_A_COMPONENT========CP
    My code is like the following:
    TYPES: BEGIN OF t_type,
                CARRID TYPE sflight-carrid,
                CONNID TYPE sflight-connid,
             END OF t_type.
      Data:  i_struc type table of t_type,
      dyn_node   type ref to if_wd_context_node,
      rootnode_info   type ref to if_wd_context_node_info,
      i_node_att type wdr_context_attr_info_map,
      wa_node_att type line of wdr_context_attr_info_map.
          wa_node_att-name = 'CARRID'.
          wa_node_att-TYPE_NAME = 'SFLIGHT-CARRID'.
          insert wa_node_att into table i_node_att.
          wa_node_att-name = 'CONNID'.
          wa_node_att-TYPE_NAME = 'SFLIGHT-CONNID'.
          insert wa_node_att into table i_node_att.
    clear i_struc. refresh i_struc.
      select carrid connid into corresponding fields of table i_struc from sflight where carrid = 'AA'.
    rootnode_info = wd_context->get_node_info( ).
    rootnode_info->add_new_child_node( name = 'DYNFLIGHT'
                                       attributes = i_node_att
                                       is_multiple = abap_true ).
    dyn_node = wd_context->get_child_node( 'DYNFLIGHT' ).
    dyn_node->bind_table( i_struc ).
    l_ref_interfacecontroller->set_data( dyn_node ).
    I am trying to create a new node. That is
    CONTEXT
    - DYNFLIGHT
    CARRID
    CONNID
    As you see above I am trying to create 'DYNFLIGHT' along with the 2 attributes which are inside this node. The structure of the node that is, no.of attributes may vary based on some condition. Thats why I am trying to create a node dynamically.
    Also I cannot define the structure in the ABAP dictionary because it changes based on condition
    Message was edited by: gopalkrishna baliga

  • How to create a node in the transaction?

    Hi !
    In R/3 , How can i create  a node  underwhich I want to assign my generic datasource?
    I went to RSA5, there create node is hidden under hierarchy menu item.
    Waiting for your reply.
    Regards
    Durai

    Hi Vineet,
                       There is no way to create a node in the interface. But DDIC type interface can be created with similar structure to the node in the ABAP Web Dynpro Component.
    Ranganathan.

  • How to create Event Node in smartform

    Hi Experts,
    could you please tell me how to create event node in smartform
    Thanks in Advance,
    Thanks&Regards
    Geetha

    HI,
    plz explain your problem in deeply.
    And as per me you first create page and righ click on it
    Then create window as per your requirement.
    if you want to put condition ot events true or false Righ click on your window
    then goto flow logic -> Altenative
    You can found 2 events in Condition.
    So you can assign this events.If you want to put condition or event on test then goto Text here in General Attributes in bottom side you can find even on page.
    Try it.

  • How to create new node in feature

    Dear Members,
    Culd any one help me out .........
    How to create new node in features..
    Example:  NUMKR
    On defaulting which option to select to create new node?
    Return value
    field for decision operation
    sub feature
    programme
    debugging operation
    error operation
    comment
    How to proceed................????????????

    hi,
    Where you can select the option field for decision operation then select the filed which you want like personal area, subarea, employee group and subgroup.
    and then select the node and then goto create and assign the return value by selecting the option ' Return value'.
    NUMKR -> FILED - PERSKGemployee group)  -> field PERSK(employee sub group) and --> return value.
    thanks,
    Vasu.

  • How to create and see the user interface of helloworld sample??

    hello friends,
    i have deployed the hello world sample
    now i want to know how to create and see the user interface of hello world sample.
    thanks and regards..

    If you go to bpel console host:port/BPELConsole (in a dev install, localhost:9700), click on your process, we will generate, based on the describing wsdl a UI for you ..
    hth clemens

  • How to create one node for multiple cards?

    I want a single minor device node to act as the interface to all instances of my pci-cards.
    I have the same pci-cards(pcixxx, xxx).

    You may want to create minor nodes on the fly
    using cloning or makedevice() interface.
    WDD has an example on it in xx_open() section,
    I believe
    Regards,
         Cyril
    I want a single minor device node to act as the
    interface to all instances of my pci-cards.
    I have the same pci-cards(pcixxx, xxx).

  • How to create xml nodes based on a value

    Dear friends,
    I've a question about graphical mapping in SAP PI...
    How can I create XML nodes on the target side based on a value in a XML field on the source side.
    For example:
    This XML field on the source:
    <NO_OF_LINES>4</NO_OF_LINES>
    Must result on 4 Lines on the Target:
    <LINE></LINES>
    <LINE></LINES>
    <LINE></LINES>
    <LINE></LINES>
    So it's actually the opposite of the Count function...
    I appreciate your help,
    Thank you in Advance,
    Kind regards,
    John

    Hi ,
    Try this
    NO_OF_LINES---> count---> UDF---> LINE
    example :
    UDF Code :
    for (int i=0;i<var1[0];i++)
    result.addValue("");

  • How to create a Node variable without fetching in Char Restriction.

    Hi Expert - I got the refrence from this thread -  [Hierarchy variables in webi / Universe;
    to create a node variable for hierarchies.
    Requirement - the  characteristic on which you want to create a node variable must not be in Default section and in Free Characteristics Restriction
    But - if we fetch any characteristic in free characteristic then it will appear in Default value section. I donu2019t want that , I donu2019t want that in Default Value section. how can i get this ?
    Also I need to create a node variable on profit center characteristic it without fetching it into Free Characteristics Restriction, Can I do this? How ?

    Hi Ingo - Thanks for your valuable input.
    After putting much efforts - here is result. I fixed my hierarchy , means now there is no hierarchy variable , And i just create a node variable by putting it into Bex characterstic  restriction. - But it looks like this in Universe.
    LovHierNodeL00 G/L Account
    LovHierNodeL00 G/L AccountBase
    LovHierNodeL01 G/L Account
    LovHierNodeL01 G/L AccountBase
    LovHierNodeL02 G/L Account
    LovHierNodeL02 G/L AccountBase
    LovHierNodeL03 G/L Account
    LovHierNodeL03 G/L AccountBase
    LovHierNodeL04 G/L Account
    LovHierNodeL04 G/L AccountBase
    Is this correct- ?
    What i feel is correct - it should look like this -
    LovG/L Account Node Variable
    LovG/L Account Node VariableBase

  • How to create a node-typed XmlValue from a String with Java?

    Hi all,
    It's already been a while since I'm trying to get how to construct a node-typed XmlValue from a String value but I keep getting different exceptions no matter what method I try.
    I started with the first way that came to my mind:
    XmlValue value = new XmlValue("<element/>"); //Even though the String represents a valid xml node, calling value.isString() returns true.
    then I thought ok, so I should maybe use the typed constructor:
    XmlValue value = new XmlValue(XmlValue.NODE, "<element/>"); //_It does not work either, calling value.isNull() returns true.
    I also tried with the rest of types (XmlValue.DOCUMENT, XmlValue.DOCUMENT_NODE, XmlValue.ELEMENT_NODE.....) and it did not work either with any of these.
    Fiinally I saw that you can construct a new XmlValue from a XmlDocument but I cannot get a XmlDocument unless I phisically create one, which obviously wont be a very good idea.
    So I'm definitely stuck with these, I would really appreciate if someone could tell me how to do this...
    Thanks in advance,
    Pablo Pareja
    PS: I'm using Berkeley dbxml 2.5.13

    Hi Pablo,
            XmlDocument doc = manager.createDocument();
            doc.setContent("<bla/>");
            XmlValue val = new XmlValue(doc);
            System.out.println(val.getType() == XmlValue.NODE);
            System.out.println(val.asString());Try this. It doesn't create physically (that is in the container) a document. The output of this piece of program:
    true
    <bla/>Hope it helps
    Vyacheslav

  • How to create a method with an interface parameter?

    Hi there.
    I would create a method with an interface parameter. I mean this:
    public interface MyInt {
        public void method(int i);
    public class SubClass implements MyInt {
        public void method(int i) {
            System.out.println("The number is: " + i);
    public class MainClass {
        public MainClass(MyInt inter) {
            inter.method(10);
        public static void main(String[] args) {
    (*)     new MainClass(new SubClass());
    }I tried to compile this but do not work (incompatible types on (*)) . Is it possible to do something like that or not?

    I compiled and runned this code on my machine and it works fine.
    How did you did to compile and run this code ?
    Did you put each code on its own file or all codes in the same file ?
    I did like this:
    I put each code in its own file and put all in the same dir, after I did:
    javac -classpath . MainClass.java
    After that, I did:
    java -classpath . MainClass
    I hope this help you
    Lucas

  • How to create error files ( in outbound interface)

    hi all
    can anyone help know how to create error files..
    my requirement goes as:
    It is an HR Outbound program...
    if the required file has error in opening..it should create an error file with a specified name and path stating the error.
    thanks in advance.
    Rippy

    please answer my query ..im new to ABAP

  • How to create a project structure with the Business Bluprint transaction S

    Hi
    How to create a project structure and add the required scenarios for your SAP system to your project structure with the Business Bluprint transaction SOLAR01.
    Also how to add your SAP system configuration structures to your project structure with the configuration transaction SOLAR02
    Thanks,

    Dear fr
    Have u already created a project?
    select the same in solar01 and click the structure tab
    On the left side select business scenarios and on the right side select the structure tab
    Press F4 here and check the Busines process repository is selected
    Nw you hav all the standard business process
    For non-standard just type there name and press save button.
    Add the relevant one's
    Once added here in solar01 reflected in solar02 automatically with relevant data for standard business process.
    you hav to add manually for non stand scean you have added.
    Hope it clarifies.
    Pls assign pts.

  • How to create Operating Unit/Department and Divisions in PP01 transaction

    Hi,
    1) Any body can tell me how to create the Operating unit, department and division in PP01 transaction.
    2) How to move one department to another operating unit  and etc.
    3) is ther any std report/ FM exists to get affected employees(I mean when i move one department to another operating unit (Y) i need employees who comes under this
    Regards,
    Maheedhar

    Issue solved.

  • How to Create a table in the middle of a transaction ?

    This software was written for sql and has a number of temporary table calls within transactions. We cannot precreate the temporary tables as some of the columns vary.
    So we create temp tables on the fly during the transaction, but the problem with that is that Oracle will commit your transaction at the point you create a temp table.
    Here's the logic:
    Begin Transaction
    Do some inserts, updates and deletes (IUDs)
    Create Global temp Table zx as select <some of those IUDs>
    Do some more inserts, updates and deletes
    Drop temp tables
    If worked
    Commit
    else
    Rollback entire transaction
    This is what I've tried so far:
    1. Run the create table on a different connection - has no visibility to the IUDs in the current transaction
    2. Split the create table and insert (instead of using CREATE AS) statements - to allow just the create table to be on a different connection - its going to be too much work to rewrite all the statements
    3. Create a permanent table instead of a temp table - same problem with committing data before the transaction has ended
    4. Put the Create As in a stored proc with AUTONOMOUS TRANSACTION turned on - same problem it has no visibility to the current outer transaction

    Thanks for coming on this thread
    The tables are used throughout the product, for example to
    (a) simplify complex queries, some too complex for oracle to process in one stmt
    (b) sub selects which will be reused
    (c) performance enhancements
    (d) left joins to summary queries
    We have 120 tables in our data model and there are many scenarios where temp tables are used. In sql server its not considered such a problem and programmers often create temp tables "on the fly".
    In fact, when we ported to oracle a couple of years ago, we had to add more temp table creates because some of the queries were too complex for oracle.
    It would be at least a months work to rewrite so temp tables are either not used or precreated, and we really have to go live with this build by the end of the week.
    No doubt we will rewrite these parts of the product to cut out temp tables, or perhaps drop oracle as a supported database, but for the time being we have oracle customers waiting for other fixes so I must find a way of giving them this software without doing this huge rewrite

Maybe you are looking for