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

BDC for Grey Mode fields.

0 Likes
1,054

Hi Friends,

For Tcode CO02, i need to write BDC program, We had a customised screen in CO02.

some fields in custom screen are in Grey mode.

in my case, i need to write a bdc program that should allow me to fill data in those Grey Mode fields.

Please help me in this regard.

Thanks in Advance.

Ravi.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
945

Hi

If you're speaking about a screen-exit, you need to manage it in the PBO of that screen in order to change the status of the I/O field:

IF SY-BINPT = 'X'.

   LOOP AT SCREEN.

      SCREEN-INPUT = 1.

      MODIFY SCREEN.

  ENDLOOP.

ENDIF.

In this way if the program is submitted to a batch input, the fields will be available for input

Max

Hi Friends,

For Tcode CO02, i need to write BDC program, We had a customised screen in CO02.

some fields in custom screen are in Grey mode.

in my case, i need to write a bdc program that should allow me to fill data in those Grey Mode fields.

Please help me in this regard.

Thanks in Advance.

Ravi.

5 REPLIES 5
Read only

Former Member
0 Likes
945

Hello,

For this, you can pass the  BDC data to the local fields which are used on screen. or

Please create export and import memory id statements.

Read only

Former Member
0 Likes
946

Hi

If you're speaking about a screen-exit, you need to manage it in the PBO of that screen in order to change the status of the I/O field:

IF SY-BINPT = 'X'.

   LOOP AT SCREEN.

      SCREEN-INPUT = 1.

      MODIFY SCREEN.

  ENDLOOP.

ENDIF.

In this way if the program is submitted to a batch input, the fields will be available for input

Max

Read only

0 Likes
945

Hi Max,


Thanks for your reply,

Yes you are right, but i need to change these fields to active mode while running the bdc program.

and after filling the data, it should go to grey mode again.

Thanks.

Read only

0 Likes
945

Hi

The system variable SY-BINPT indicates if a program wokrs in "BDC" way

Max

Read only

0 Likes
945

Hi Max,

    Its working fine and problem solved.

  Thank you for your timely help.

Regards,

Ravi Kallem