cancel
Showing results for 
Search instead for 
Did you mean: 

Difficulti in passing the parameter ID value

naimkhans_babi
Active Participant
0 Kudos

Dear friends,,,

how are you...

I m facing one problem in passing the parametr id called 'BPA' to Partner.. so i m not able to get the result from the function modules...please tell me where i did make any mistakes..any suggestion code, will be great help of mine.. i have provided you the code...

thanking you...

FUNCTION Z_BP_GET_ADDRESS_EXIT.

*"----


""Local Interface:

*" TABLES

*" SHLP_TAB TYPE SHLP_DESCT

*" RECORD_TAB STRUCTURE SEAHLPRES

*" CHANGING

*" VALUE(SHLP) TYPE SHLP_DESCR

*" VALUE(CALLCONTROL) TYPE DDSHF4CTRL

*"----


IF CALLCONTROL-STEP = 'SELECT'.

DATA: PARA TYPE tpara-paramid VALUE 'BPA',

PARTNER TYPE BU_PARTNER,

ADDRESS TYPE BU_ADDSC,

T_ADD_NO TYPE STANDARD TABLE OF BAPIBUS1006_ADDRESSES_INT,

LINE TYPE SEAHLPRES,

ADD_NO_LINE TYPE BAPIBUS1006_ADDRESSES_INT.

GET PARAMETER ID PARA FIELD PARTNER.

  • MOVE '0000000061' TO PARTNER.

DATA: ES_BUT000 TYPE BUS000___I,

ES_BUT000_OLD TYPE BUS000___I,

ET_partner TYPE TABLE OF BAPIBUS1006_KEY.

CALL FUNCTION 'BUPA_ADDRESSES_GET'

EXPORTING

IV_PARTNER = PARTNER

  • IV_PARTNER_GUID =

  • IV_ADDRESS_TYPE =

  • IV_OPERATION =

  • IV_VALID_DATE = SY-DATLO

  • IMPORTING

  • EV_STANDARD_ADDRNUMBER =

  • EV_STANDARD_ADDRGUID =

  • EV_STANDARD_USED_INSTEAD =

TABLES

ET_ADDRESSES = T_ADD_NO

  • ET_ADDRESSES_ALL =

  • ET_RETURN =

.

LOOP AT T_ADD_NO INTO ADD_NO_LINE.

CALL FUNCTION 'BUA_ADDRESS_DESCRIPTION_GET'

EXPORTING

I_PARTNER = PARTNER

  • I_PARTNERGUID =

  • I_OPERATION =

I_ADDRNUMBER = ADD_NO_LINE-ADDRNUMBER

  • I_ADDRGUID =

  • I_BUT000 =

  • I_XMEMORY = ' '

  • I_XWA = ' '

  • I_VALDT = '00000000'

  • I_VALDT_SEL = '00000000'

  • I_VALDT_SEL_NAMES = SY-DATLO

IMPORTING

  • E_DESCRIPTION =

E_DESCRIPTION_STREET = ADDRESS

  • E_XSTANDARD =

  • E_XFIX =

  • E_DESCRIPTION_LONG =

  • E_ADDRNUMBER =

  • E_DESCRIP_STREET_WITH_NAME =

  • EXCEPTIONS

  • NO_ADDRESS_FOUND = 1

  • WRONG_PARAMETERS = 2

  • INTERNAL_ERROR = 3

  • DATE_INVALID = 4

  • OTHERS = 5

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

CONCATENATE ADD_NO_LINE-ADDRNUMBER ADDRESS INTO LINE-STRING.

INSERT LINE INTO TABLE RECORD_TAB.

ENDLOOP.

CALLCONTROL-STEP = 'DISP'.

ENDIF.

ENDFUNCTION.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Have you checked that there is a SET PARAMETER before the Function Module? The parameter ID might be empty and you might have PARTNER value empty.

Hope it helps.

Regards.

Mireia

Answers (7)

Answers (7)

Former Member
0 Kudos

Hi Naim.

please mail me ur problem in detail.

Regards

Manoj

manoj.baijnath@wipro.com

Former Member
0 Kudos

Hi Naim Khan,

u can also check the value of sy-subrc, if any value is fetched then the value of sy-subrc will be 0 otherwise 4.

Former Member
0 Kudos

Hi,

Before importing the value of BP. Value BP should be set.

u can check wheather BP is set or not in Debugging Mode.

1) Go to debugging Mode

2) goto>system area>SAP memmory.

if the value is set the value will be shown ; otherwise no value.

BPA <........ >

if u want to set value form CICO

CICO

enter BP Number and click green right button.

otherwise u can set it in the program.

naimkhans_babi
Active Participant
0 Kudos

Dear Manoj..

thanx for your reply I have search for the system area in goto.. i found only..source code..not sap memory, and in CICO t code i dont have rights... would like to show me another way to implement your suggestion please,,,,

thanking you,,,

regards,naim

naimkhans_babi
Active Participant
0 Kudos

i m not supposed to hard code it in the program..

i have done this Move '000000061' to partner...that helps..but for one field only... i need to pass dynemically BP ID range so it pop ups the search help list..

thank you

regards,

Naim

Former Member
0 Kudos

Try

GET PARAMETER ID 'BPA' FIELD PARTNER.

Former Member
0 Kudos

instead of declaring a variable and passing , try passing directly

GET PARAMETER ID 'BPA' FIELD PARTNER.

former_member181962
Active Contributor
0 Kudos

HI Naim,

Put a break-point at the get parameter statement and see what is the value that you are getting for partner.

Regards,

Ravi

former_member184569
Active Contributor
0 Kudos

Hi Naim,

YOu have not given the quotes.

GET PARAMETER ID 'PARA' FIELD PARTNER.

Thanks,

Susmitha