Skip to Content
0

Value Disappears after enter in Sales Org screen of Customer Create Screen SAP MDG

Sep 11 at 03:09 PM

58

avatar image

Hello All,

I have 3 fields VKORG,SPART & VTGEW (which are already F4)for creating Sales Organization in Customer Creation Screen .

So when I enter by giving SOrg as 1234, the remaining fields (SPART & VTGEW ) should auto filled based on the entry in VKORG. For this I have enhanced webdyn app and written code after post implementation of method (ONACTIONDISPATCH_ACTION). Values sets fine but when i go to back and come to the same screen , values gets disappears.

Code As follows(hard coded for test purpose)

lo_nd_dynamic = wd_context->get_child_node( name = wd_this->wdctx_dynamic ). lo_el_dynamic = lo_nd_dynamic->get_element( ).

lr_cntxt = lo_el_dynamic->get_child_node( name = 'VALUES' ).

lr_cntxt->get_attribute( EXPORTING name = 'VKORG' IMPORTING value = lv_vkorg ). CHECK lv_vkorg IS NOT INITIAL.

lr_cntxt->set_attribute( name = 'VTWEG' value = '01' ).

lr_cntxt->set_attribute( name = 'VTWEG__TEXT' value = 'ABCDGG' ).

lr_cntxt->set_attribute( name = 'SPART' value = '01' ).

lr_cntxt->set_attribute( name = 'SPART__TEXT' value = 'ABCD' ).

lr_cntxt->set_changed_by_client( ).

Please do needful.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Mithuunn Gp Sep 20 at 02:34 PM
0

Hi Bala,

Let me try that, can you put some piece if code about method flush, as i enhanced and wrote post method of on dynamic action.

Share
10 |10000 characters needed characters left characters exceeded
Bala Murugan Sep 19 at 11:23 AM
0

Hi Mithun,

Value is setting only on UI field now but not written into buffer.So feeder class FLUSH method will enable to flush the data into buffer.

Regards,

Bala

Share
10 |10000 characters needed characters left characters exceeded