cancel
Showing results for 
Search instead for 
Did you mean: 

how to read header text data from table and display in webdynpro app.

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member222068
Active Participant
0 Kudos

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

Former Member
0 Kudos

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.

former_member184578
Active Contributor
0 Kudos

Hi,

Had you consider searching in SCN.?

There are lot of already answered discussion for the same.

Ex:

sales order header text | SCN 

Regards,

Kiran