on 11-25-2008 4:55 PM
Hello experts,
I got an easy question for you. How can I include new entries on any table that at the beginning does not have entries?. If the table has entries I can select one of them and insert new ones by debugging but I don´t know how to do it without entries
Thanks a lot
Regards
German
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Carsten,
I have noticed that you got great knowlegde in ICWEB program structures. Thanks a lot for your help¡¡
But I was looking for another kind of answer, related to normal tables (SE16), I just want to insert new entries in a table that is empty (e.g but000). I don´t know how to insert entries if the table is empty
I think it is easier than the code you gave me hehe.
Thanks a lot¡¡¡
Regards
German
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi German,
If you know how to do it via debugging, then it should not be a problem for you. First of all, check what error message is it giving in SE16, when you try to create an entry for it.
In my case, it was giving-Table maintenance not allowed for table 'XYZ'.
So you just need to skip that statement which is throwing that exception.
Just put a breakpoint in Function Module-RS_TABLE_LIST_CREATE in SE37 transaction line-260.Skip line 261 via debugging and then you will see the table in insert mode. Insert and save your entry.
Its working for me.Can you please try it?
Regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1. Go to SE16 enter the table name and execute.
2.Select any one entries from the table.
3. /h and click on the green tick on the top corner.
4.In the debugger, change the value of CODE = INSR.
5.Enter the required entries and click on save
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello guys,
Definitely it is a good option to skip the validation for the error message. But once I´m able to insert the entries on the table, the system requires the transport order to be saved as usual.....I´m not allowed to create any order hehe.
Is there any other way?
Anyway rohit, charsten, thaks a lot for your help¡¡¡
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Uups, I misread the question. Must be the routine, as most questions here regard the WebClient
Do as Rohit said. This will work.
cheers Carsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Depends on the kind of table.
In case of value nodes you can simple do this:
data:
lr_struct type ref to but000,
lr_node type ref to cl_bsp_wd_value_node.
create data lr_struct.
create object lr_node exporting iv_struct_ref = lr_struct.
typed_context->MyNode->collection_wrapper->add( lr_node ).
If you have got model nodes it should even be simpler:
data:
lr_entity type ref to if_bol_bo_property_access,
lr_core type ref to cl_crm_Bol_core,
lr_parent type ref to cl_crm_bol_entity.
* lr_parent needs to be filled by the node above in the BOL hierarchy
lr_parent = typed_context->ParentNode->collection_wrapper->get_current( ).
lr_entity = lr_parent->create_related_entity( 'SomeKindOfRelation' ).
typed_context->MyTable->collection_wrapper->add( lr_entity ).
lr_core = cl_crm_bol_core=>get_instance( ).
lr_core->modify( ).
I already shutdown the system. Thus I wrote the code out of my head. There might be minor flaws in it.
cheers Carsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.