on 05-16-2006 9:59 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Naim.
please mail me ur problem in detail.
Regards
Manoj
manoj.baijnath@wipro.com
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try
GET PARAMETER ID 'BPA' FIELD PARTNER.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
instead of declaring a variable and passing , try passing directly
GET PARAMETER ID 'BPA' FIELD PARTNER.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Naim,
YOu have not given the quotes.
GET PARAMETER ID 'PARA' FIELD PARTNER.
Thanks,
Susmitha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.