Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

error in bdc method

Former Member
0 Likes
504

hello all,

In methods(se80).........when iam entering this field names and field values....for call method bdc_field am gettin error msg

You cannot use the statement "CALL METHOD" in the current environment.

However, you could use the similar statement "METHOD".

plz advise,

regards

sudheer

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
447

I need to see your code to see what you are doing wrong.

Regards,.

Rich Heilman

Read only

0 Likes
447

FORM build_4004_screen.

PERFORM dynpro_new USING c_sapmv50a

c_4004 "dynpro number

CHANGING last_dynpro.

  • enter field "Delivery Number"

PERFORM dynpro_setzen USING c_likp-vbeln i_delivery-vbeln.

  • Confirm Pick Order

PERFORM dynpro_setzen USING c_bdc_okcode c_quit_t.

Read only

Former Member
0 Likes
447

for that my prog in se80 is

METHOD BUILD_CONFIRM_PICK_ORDER_SCR.

CALL METHOD bdc_screen

EXPORTING

prog_name = 'SAPMV50'

screen_nbr = '4004'

CHANGING

last_dynpro = last_dynpro.

ENDMETHOD.

CALL METHOD BDC_FIELD

EXPORTING:

field_name = 'LIKP-VBELN' field_value = i_delivery-vbeln,

field_name = 'BDC_OKCODE' field_value '= c_quit_t'.

ENDMETHOD.