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: 

Set values to standard transaction fields

Former Member
0 Kudos

Hi,

I am trying to set values to a standard transaction by my program using set parameter id. But, while calling the transaction, i think somewhere the values I passed is getting refreshed and no values are appearing in the called transaction!

Is there any other way through which I can pass the values and set the fields with them?

Please help.

Thanks & Regards,

Anshumita.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

please cross check the field in the screen painter ; is it enable for SET / GET parameter ID.

u can also check the value of the PARAMETER ID in debuging mode.

start debugging the program.

goto->system area->sap memmory

search the PARAMETER id and check the corresponding value.

here u can see the value set for the parameter id.

if u can see the value then field is not enabled for

get/set parameter.

<b>Please Reward Points & Mark Helpful Answers</b>

To mark Helpful Answers ;click radio Button next to the post.

RadioButtons

<b>o</b> Helpful Answer

<b>o</b> Very helpful Answer

<b>o</b> Problem Solved.

Click any of the above button next to the post; as per the anwers

<b>To close the thread; Click Probelm solved Radio Button next to the post , which u feel is best possible answers</b>

Message was edited by: Manoj Gupta

4 REPLIES 4

Former Member
0 Kudos

Hi,

please cross check the field in the screen painter ; is it enable for SET / GET parameter ID.

u can also check the value of the PARAMETER ID in debuging mode.

start debugging the program.

goto->system area->sap memmory

search the PARAMETER id and check the corresponding value.

here u can see the value set for the parameter id.

if u can see the value then field is not enabled for

get/set parameter.

<b>Please Reward Points & Mark Helpful Answers</b>

To mark Helpful Answers ;click radio Button next to the post.

RadioButtons

<b>o</b> Helpful Answer

<b>o</b> Very helpful Answer

<b>o</b> Problem Solved.

Click any of the above button next to the post; as per the anwers

<b>To close the thread; Click Probelm solved Radio Button next to the post , which u feel is best possible answers</b>

Message was edited by: Manoj Gupta

naimesh_patel
Active Contributor
0 Kudos

hello,

Another way is by making small BDC ... just pass whatever you want to that screen.

CALL TRANSACTION 'MM02' WITH BDCTAB MODE 'A'.

Regards,

Naimesh

Former Member

Former Member
0 Kudos

Hi,

I there is problem with <b>SET PARAMETER ID</b>, then check whether you have correctly specified the PARAMETER ID fields for the Transaction.

Ex:

DATA REPID like sy-repid VALUE 'RSPFPAR'.
SET PARAMETER ID <b>'RID'</b> FIELD REPID.

Else try doing a partial BDC recording for that transaction using Transaction recorder(SHDB).

Check this sample code using Partial BDC for Transaction <b>MD48</b>


 REPORT zztest.

DATA : it_mara TYPE STANDARD TABLE OF mara WITH HEADER LINE,
       layout TYPE rm61m-usprf.

DATA:   bdcdata LIKE bdcdata    OCCURS 0 WITH HEADER LINE.


START-OF-SELECTION.

  layout = 'SAPMPS'.
  SELECT * FROM mara INTO TABLE it_mara UP TO 2 ROWS.

  LOOP AT it_mara.


    PERFORM bdc_dynpro      USING 'SAPMM61M' '0103'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  'TCAL'.

    PERFORM bdc_field       USING 'RM61M-MATNR'
                                  it_mara-matnr.
    PERFORM bdc_field       USING 'RM61M-USPRF'
                                  layout.
    CALL TRANSACTION 'MD48'

    USING bdcdata
    MODE   'A'.

  ENDLOOP.



*----------------------------------------------------------------------*
*        Start new screen                                              *
*----------------------------------------------------------------------*
FORM bdc_dynpro USING program dynpro.
  CLEAR bdcdata.
  bdcdata-program  = program.
  bdcdata-dynpro   = dynpro.
  bdcdata-dynbegin = 'X'.
  APPEND bdcdata.
ENDFORM.                    "BDC_DYNPRO

*----------------------------------------------------------------------*
*        Insert field                                                  *
*----------------------------------------------------------------------*
FORM bdc_field USING fnam fval.

  CLEAR bdcdata.
  bdcdata-fnam = fnam.
  bdcdata-fval = fval.
  APPEND bdcdata.

ENDFORM.                    "BDC_FIELD


Regards,

AS