‎2005 Oct 23 3:20 PM
Dear All,
I have a bdc program now i need to pick up function code based on some condition. means if some condition then goto one function code and else don't go. I tried it but not working. It is working in shdb but not in the program.
eg.
if not zcontract_no is initial.
perform bdc_dynpro using 'SAPMZW_CREATE_SALES_ORDER_STD'
'9000'.
perform bdc_field using 'BDC_CURSOR'
'P_CONTRACT'.
perform bdc_field using 'BDC_OKCODE'
<b>'=COPY'.</b>
endif.
perform bdc_field using 'BDC_OKCODE'
<b>'=SUBMIT'</b>.
Please suggest.
Regds,
Anup
‎2005 Oct 23 3:30 PM
Hi ,
In your second case u r not specifying the BDC DYNPRO screen number , your code should be
if not zcontract_no is initial.
perform bdc_field using 'BDC_OKCODE'
'=COPY'.
else..
perform bdc_field using 'BDC_OKCODE'
'=SUBMIT'.
endif.
Kunal