cancel
Showing results for 
Search instead for 
Did you mean: 

Hoe to set parameter id for screen field

Former Member
0 Kudos

Hai guru's,

i want to set a parameter id for screen field which exists on BD87 transaction, i know that if dataelement contains parameter id (example vbeln has parameter id 'AUN' and we can pass parameter value as

SET PARAMETER ID 'AUN' FIELD FIELD-VAL.),If a data element does not contain parameter id how to set that...

if any of you people overcome this kind of problem, plz reply to this query.

thanks in advance

innu.

Accepted Solutions (0)

Answers (5)

Answers (5)

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Did you tried as I told?

Use submit statement.

Submit RBDMON00 with field in value and return.

<b>Just try giving the changed_on field in submit.</b>

Kindly reward points by clicking the star on the left of reply if you find it as useful.

Message was edited by: Jayanthi Jayaraman

athavanraja
Active Contributor
0 Kudos

sx_docnu is a select-option

SUBMIT RBDMON00 WITH sx_docnu<b>-low</b> = sel_field-value

else.

DATA: rspar_tab TYPE TABLE OF rsparams,

rspar_line LIKE LINE OF rspar_tab .

rspar_line-selname = 'SX_DOCNU'.

rspar_line-kind = 'S'.

rspar_line-sign = 'I'.

rspar_line-option = 'EQ'.

rspar_line-low = '<idoc number>'.

APPEND rspar_line TO rspar_tab.

SUBMIT RBDMON00 WITH SELECTION-TABLE rspar_tab .

Regards

Raja

Former Member
0 Kudos

Hai durai,

thanks for the reply,but its not working...(if u feel free try it on ur system)

and one more thing is that i tried in the following way

bdctab-program = 'RBDMON00'.

bdctab-dynpro = '1100'.

bdctab-dynbegin = 'X'.

append bdctab.

bdctab-fnam = 'SX_DOCNU-LOW'.

bdctab-fval = sel_field-value.

append bdctab.

bdctab-fnam = 'BDC_OKCODE'.

bdctab-fval = 'ONLI'.

append bdctab.

call transaction 'BD87' using bdctab .

this is working fine but if i add mode as 'N' Then

its not showing the transaction

innu.

Former Member
0 Kudos

Hi Innu

Why do you want to call the progam by CALL TRANSACTION?

Trx BD87 run program RBDMON00, so why don't you do a SUBMIT?

SUBMIT RBDMON00 WITH .....

......

...... AND RETUNR.

Max

Former Member
0 Kudos

Hi,

U have mentioned that u dont have parameterid then y u r CALLING transaction u can

SUBMIT PROGRAM

The SUBMIT statement executes a report from within a report. i.e. you could have a drill-down which 
calls another report. Can only execute reports of type '1'. 	

*Code used to execute a report  
SUBMIT Zreport.

*Code used to populate 'select-options' & execute report  
DATA: seltab type table of rsparams,
      seltab_wa like line of seltab.

  seltab_wa-selname = 'PNPPERNR'.
  seltab_wa-sign    = 'I'.
  seltab_wa-option  = 'EQ'.

* load each personnel number accessed from the structure into
* parameters to be used in the report
  loop at pnppernr.
    seltab_wa-low = pnppernr-low.
    append seltab_wa to seltab.
  endloop.
  SUBMIT zreport with selection-table seltab
                                via selection-screen.

*Code used to populate 'parameters' & execute report  
 SUBMIT zreport with p_param1 = 'value'
                with p_param2 = 'value'.

        
Other additions for SUBMIT 
*Submit report and return to current program afterwards 
 SUBMIT zreport AND RETURN.

*Submit report via its own selection screen 
 SUBMIT zreport VIA SELECTION-SCREEN.

*Submit report using selection screen variant
 SUBMIT zreport USING SELECTION-SET 'VARIANT1'

Former Member
0 Kudos

hai ,

finally my problem solved with BDC....so, i am giving reward points to jayanthi who mensioned BDC first.and my sincear thanx to all of them who transferd their valuble knowledge to me.

Thanks

innu

Former Member
0 Kudos

You requirement is not clear. Are you trying to call BD87

with SUBMIT through your custom program????

Former Member
0 Kudos

hai sunjay,

i have a list which displays idoc results(based on requirement)in hierarchial list.when i select one idoc that should navigate to bd87 transaction without showing selection screen with result, same way when i click on back button in bd87 result screen i must navigate to my list.

innu

Former Member
0 Kudos

Hi,

U will be using

SET PARAMETER ID 'AUN' FIELD FIELD-VAL

, when u want to

CALL TRANSACTION BD87 AND SKIP FIRST SCREEN.

Before calling a transaction u want to pass values for the default screen fields, so for that we will set parameter id.

In case if u dont have the PARAMETER-ID for a particular field then it is better to

SUBMIT PROGRAM programname...

This is the way u have to do if u dont have parameter id.

To check the program name goto the transaction in that system> status > u can find the program name.

Hope this helps u, Kindly reward points and close the thraed if ur problem got solved or kindly revert back.

Former Member
0 Kudos

hai judith,

u r correct, but how to pass selected value to that slection screen and should not display selec screen,instead it should display the results and when i click back button, i must return to my list.

innu

Former Member
0 Kudos

When u use

<b>SKIP FIRT SCREEN</b>

after the CALL TRANSACTION u wont be getting the selction screen it will directly go to the next screen.

Make sure that u pass all the default values in the transaction.

Also see to that the values u r passing are not blank.

Eg:

WHEN 'MATNR'.
      IF lv_lines EQ 0 .
        MESSAGE s001 WITH text-008.
        " Select at least one entry in the report
      ELSE.
*As we are not clearing the work area the last entry will be in w_block
        SET PARAMETER ID 'MAT' FIELD w_block-matnr.
        SET PARAMETER ID 'WRK' FIELD w_block-werks.
        SET PARAMETER ID 'LAG' FIELD w_block-lgort.
        SET PARAMETER ID 'CHA' FIELD w_block-charg.
        CALL TRANSACTION c_transaction_call_mmbe AND <b>SKIP FIRST SCREEN .</b> 
     ENDIF.

Hope this helps.Get back if u need more help.

Former Member
0 Kudos

i don't have parameter id to pass

the only possible is i have to submit the report

even i am writing the below code its showing the selection screen

WHEN 'CALLT'.

  • SET PARAMETER ID 'ZDOC' FIELD sel_field-value.

  • CALL TRANSACTION 'BD87'. " AND SKIP FIRST SCREEN.

*

SUBMIT RBDMON00 WITH sx_docnu = sel_field-value

AND RETURN.

ENDCASE.

sx_docnu = is the name of the select-options in BD87 transaction.

innu

Former Member
0 Kudos

Which field you want to set the parameter on BD87.

Also is it that every time a user goes into BD87 you want that value to be defaulted and you want this for all users ???

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Normally I used to run BDC for the transaction or I will use Submit statement.

Submit statement will be used by supplying the mandatory parameters in the selection screen of the standard program of the transaction.Find the standard program of the transaction in se93 and then use submit statement[check the syntax].

Kindly reward points by clicking the star on the left of reply,if it is useful.