Skip to Content
0
Former Member
Jan 16, 2008 at 10:02 AM

no data is displayd on the table

22 Views

hi all,

i have 3 individual nodes of type structure.

now when i click a particilar button, the attributes of these nodes are taken and supplied to the bapi which den displays the result on the table.

Once when i read all the 3 individual nodes and then call the method as shown below but nothing gets displayd on the table....tried all possible solutions but no luck :[

data itab type standard table of BAPI_BCA_STR_CN_ACCT_EXT.

*

data wa type BAPI_BCA_STR_CN_ACCT_EXT.

*

*

*reading bank-country

DATA lo_nd_account_details TYPE REF TO if_wd_context_node.

DATA lo_el_account_details TYPE REF TO if_wd_context_element.

DATA ls_account_details TYPE wd_this->element_account_details.

DATA lv_bank_country LIKE ls_account_details-bank_country.

  • navigate from <CONTEXT> to <ACCOUNT_DETAILS> via lead selection

lo_nd_account_details = wd_context->get_child_node( name = wd_this->wdctx_account_details ).

  • get element via lead selection

lo_el_account_details = lo_nd_account_details->get_element( ).

  • get single attribute

lo_el_account_details->get_attribute(

EXPORTING

name = `BANK_COUNTRY`

IMPORTING

value = lv_bank_country ).

*reading bank-key

DATA lo_nd_account_details1 TYPE REF TO if_wd_context_node.

DATA lo_el_account_details1 TYPE REF TO if_wd_context_element.

DATA ls_account_details1 TYPE wd_this->element_account_details1.

DATA lv_bank_code LIKE ls_account_details1-bank_code.

  • navigate from <CONTEXT> to <ACCOUNT_DETAILS1> via lead selection

lo_nd_account_details1 = wd_context->get_child_node( name = wd_this->wdctx_account_details1 ).

  • get element via lead selection

lo_el_account_details1 = lo_nd_account_details1->get_element( ).

  • get single attribute

lo_el_account_details1->get_attribute(

EXPORTING

name = `BANK_CODE`

IMPORTING

value = lv_bank_code ).

*reading account-number

DATA lo_nd_account_details2 TYPE REF TO if_wd_context_node.

DATA lo_el_account_details2 TYPE REF TO if_wd_context_element.

DATA ls_account_details2 TYPE wd_this->element_account_details2.

DATA lv_account_number LIKE ls_account_details2-account_number.

  • navigate from <CONTEXT> to <ACCOUNT_DETAILS2> via lead selection

lo_nd_account_details2 = wd_context->get_child_node( name = wd_this->wdctx_account_details2 ).

  • get element via lead selection

lo_el_account_details2 = lo_nd_account_details2->get_element( ).

  • get single attribute

lo_el_account_details2->get_attribute(

EXPORTING

name = `ACCOUNT_NUMBER`

IMPORTING

value = lv_account_number ).

WA-BANK_COUNTRY = lv_bank_country.

WA-BANK_CODE = lv_bank_code.

WA-account_number = lv_account_number.

Append WA to ITAB.

IF SY-SUBRC <> 0.

COMMIT WORK.

ENDIF.

CALL FUNCTION 'BAPI_BCA_PAYMITEM_GET_LIST'

EXPORTING

ACCOUNTIDENT = wa.

*