Application Development 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: 

"OPTIONS" in CALL TRANSACTION

Former Member
0 Kudos

HI Experts,

Kindly provide the use and when is it neccessary to use the parameter "OPTIONS" in CALL TRANSACTION?

I created a BDC for transaction HUINV01 and HUINV05 (both transactions are for handling unit inventory documents). Is it neccessary to use the options parameter in this transactions?

I'm experiencing a problem during the call transaction of huinv05, in running the BDC and normal transaction, the BDC result seems to be not completed.

Is the parameter OPTIONS has something to do with this?

Thanks in advance..

Useful answer will be awarded generously.

1 ACCEPTED SOLUTION

former_member404244
Active Contributor
0 Kudos

Hi,

check the sample code..This will give some idea.

  • Declaration of local constants

CONSTANTS : lc_tcode TYPE tstc-tcode VALUE 'ME31K',

lc_n TYPE ctu_mode VALUE 'N'.

  • Declaration of local variables

DATA: lv_msg TYPE string,

lv_subrc LIKE sy-subrc,

lv_opt TYPE ctu_params.

lv_opt-defsize = c_x.

lv_opt-dismode = lc_n.

lv_opt-updmode = c_l.

REFRESH i_messtab.

  • Call the transaction to create the Purchasing Contracts

CALL TRANSACTION lc_tcode USING i_bdcdata

OPTIONS FROM lv_opt

MESSAGES INTO i_messtab.

reward points if you find useful.

Regards,

Nagaraj

4 REPLIES 4

former_member404244
Active Contributor
0 Kudos

Hi,

check the sample code..This will give some idea.

  • Declaration of local constants

CONSTANTS : lc_tcode TYPE tstc-tcode VALUE 'ME31K',

lc_n TYPE ctu_mode VALUE 'N'.

  • Declaration of local variables

DATA: lv_msg TYPE string,

lv_subrc LIKE sy-subrc,

lv_opt TYPE ctu_params.

lv_opt-defsize = c_x.

lv_opt-dismode = lc_n.

lv_opt-updmode = c_l.

REFRESH i_messtab.

  • Call the transaction to create the Purchasing Contracts

CALL TRANSACTION lc_tcode USING i_bdcdata

OPTIONS FROM lv_opt

MESSAGES INTO i_messtab.

reward points if you find useful.

Regards,

Nagaraj

former_member197281
Active Participant
0 Kudos

Hi Salem,

Suppose if you have recorded a bdc in 800x600 resolution with table control in a screen,and you want to process the same bdc in another system with 1024x768 resolution ,the bdc may not work.this is because when the values are filled into the table control the logic we have written for filling the table control lines crashes.

So we fill the options-defsize = 'X' ,we can handle the problem.sap will automatically adjust the resolution to the default one ie 800x600.

<b>reward points if helpful,</b>

Regards,

jinesh.

Former Member
0 Kudos

Thanks for the answers. Can you explain also the other fields, RACOMMIT, NOBINPT and NOBIEND.

Thanks.

0 Kudos

hi

RACOMMIT = CALL TRANSACTION USING... is not completed by COMMIT

NOBINPT = SY-BINPT=SPACE for CALL TRANSACTION USING...

NOBIEND = SY-BINPT=SPACE after data end for CALL TRANSACTION USING...

CATTMODE = CATT mode for CALL TRANSACTION USING...

UPDMODE = Update mode for CALL TRANSACTION USING...

DISMODE = Processing mode for CALL TRANSACTION USING...

<b>Pls reward points if helpful,</b>

Regards,

jinesh.