on 02-10-2014 6:24 AM
Hi,
I want to display sales order header text in wed dynpro screen , But i don't know where to fetch the header text can anyone plz help me on this ....
if you provide solution with code that can more helpful to me.
Thanks
Janardhan
Hi Janardhan,
Can you elobrate your question. Do you want to read the selected record of a table ? or Based on the VBAK data do you want to display VBAP data.
If so..
To read the selected record of a table:
Create an event to a table property 'ONLEADSELECT' and implement the code.
Data: lo_nd_VBAK type ref to if_wd_context_node,
lo_el_vbak type ref to if_wd_context_element,
ls_vbak type wd_this->element_vbak.( name of the node )
lo_nd_vbak = wd_context->get_child_node( 'VBAK' ).
if lo_nd_vbak is not initial.
lo_el_vbak = lo_nd_vbak->get_element( ).
if lo_el_vbak is not initial.
lo_el_vbak->get_static_attributes( importing static_attributes = ls_vbak ).
endif.
endif.
IF ls_vbak is not initial.
*** write the logic to fetch item details
endif.
Thanks & Regards,
Sankar Gelivi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Janardhan,
Do you need to read sales document header text?
If yes, then you can use READ_TEXT by exporting following fields:
TDOBJECT = 'VBBK'
TDNAME = 'your order number'
TDID = '0001'
TDSPRAS = 'Language in which user entered the text on sales document'.
Before using the above variables, please double check the STXH table using TDOBJECT = 'VBBK' and TDNAME = 'your order number'. If you find entry in the table, check what is the language key there and use that in function module.
Thank You,
Gajendra.
Hi,
Had you consider searching in SCN.?
There are lot of already answered discussion for the same.
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.