‎2010 Oct 01 6:48 AM
Hi Experts,
I am creating a table which will have sales order header details and the BAPI return messages for every order.
Order header details will be single line and BAPI return messages will be multiple lines. I wanted to give this result in the table.
For capturing return messages, I created a table type with return structure. Again I went to the order details table and I appended a structure, which will have this table type as a component. But, When I activate, it says table type cannot be in DB table.
Is it not possible?
In that case should I go to only views. Can't I try with deep tables.
Thanks and regards,
Venkat.
‎2010 Oct 01 6:55 AM
Hello Venkat,
You cannot create a nested table within a table.
What you can do is create a structure with the nested table type in it.
Then in your code, you can create an internal table for the same.
Hope it helps,
Regards,
Himanshu
‎2010 Oct 01 6:59 AM
In a table you cannot include a table type.
here in you case a sales order item will have multiple return messages.
that cannot be stored in the existing item table.
Are you using Sales order create bapi...?
IF that is the case what is the use of storing all that return messages.
If sucessful sales order no will be generated. for all other cases...some error messages will be returned.
IF you are using a program, which is sheduled, and if these message are shown as o/p using write.
then that can be seen in log.
‎2010 Oct 01 7:09 AM
Hi,
I am creating one document type(ZS05) sales order against another document type(ZRR1) sales order. So, even if I have error messages, I can have ZRR1 sales order as an entry in the table and I can store the error messages against it.
This is purely developed for future reference purpose.
Thanks and regards,
Venkat.
‎2010 Oct 01 9:57 AM
Why re-invent the wheel? Make use of the application log. (see transaction SLG1).