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

Syntax problem with BDC perform

Former Member
0 Likes
493

Dear Friends,

small problem in BDC Perform syntax but I am not getting how to do this..

I have writen the code like this in my BDC byt its throughing the error...Here I want to do the validation on each and every field. I mean If that field values are empty i don't want to change the SAP field value.

my code is like this.

PERFORM dynpro USING:

'X' 'SAPLMGMM' '0080'.

IF NOT p_int_matl-werks IS INITIAL.

' ' 'RMMG1-WERKS' p_int_matl-werks.

ENDIF.

IF NOT p_int_matl-werks IS INITIAL.

' ' 'RMMG1-LGORT' p_int_matl-lgort.

ENDIF.

' ' 'BDC_OKCODE' '/00'.

pls give me exact code how to do this...

Thanks

Sridhar

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
471

You need to separate that out, you can't put IF statements with in the PERFORM statement like that.

REgards,

Rich Heilman

Read only

Former Member
0 Likes
471

Hi sridher,

1. this kind of syntax ie. IF will give error.

2. If ur requirement is : blank value should not be put in bdc,

3. then one way is to change / write the logic

inside the form itself.

4. ie. inside the routine/form DYNPRO.

5. So, it will be then general for all performs.

regards,

amit m.