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: 

Help with Function Module & Infoset

Former Member
0 Kudos
458

Hi Gurus,

I am no ABAPer so please be gentle : - )

I have created an infoset to read tables QMEL (Notifications) & IHPA (partners) to be able to run queries over notifications that have been keyed.

The infoset works fine apart from when it reads table IHPA (partners), it pulls through the values in PARVW (partner type) and PARNR (partner number) but there is no field available in the infoset to read the text associated with each partner as it appears on the screen.The field I need to read is NAME_LIST in structure DIADR.

For example (how it looks on the screen):

PARVW | PARNR | NAME_LIST

Employee | 0000001 | Mr Alec Fletcher

I found a function module (PM_PARTNER_READ) that look like it retrives what I need, but I am not sure how to put it into the infoset. I have created an additional field in the extras area of the infoset then clicked on the coding for addition button. Here I clicked on the format button and selected the CALL_FUNCTION option with the above mentioned function module, I now have the following:

CALL FUNCTION 'PM_PARTNER_READ'

EXPORTING

  • PARVW = ' '

PARNR =

  • NRART = ' '

  • ADRNR =

  • CHECK_DEBITOR = 'X'

  • OBJNR =

  • NO_TABIX_DET =

  • IMPORTING

  • PARNR_EXP =

  • DIADRC_WA =

  • DIADRP_WA =

  • DIADR_WA =

  • DIADRCPD_WA =

  • XCPDK =

  • E_NRART =

  • KTOKD =

  • VTEXT =

  • CUSTOMER_CONTACT =

  • ADRNR_SD =

  • ADRDA =

  • ADRND =

  • ADRNP =

  • EXCEPTIONS

  • NO_VALID_PARNR = 1

  • NO_VALID_PARNR_TODAY = 2

  • NO_AUTHORITY = 3

  • PARVW_AND_NRART_INITAL = 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.

Question:

What do I need to do to get it to read the data in IHPA-PARVW & IHPA-PARNR pass it to the function module and populate my new field with the data held in DIADR_WA-NAME_LIST.

Hope you can help,

Alec

4 REPLIES 4

Former Member
0 Kudos
144

Anyone??

0 Kudos
144

Hi alec,

try to pass PARVW and PARNR both and if possible pass the ADRNR as well.

hope this works for you.

cheers!!

david_liss
Explorer
0 Kudos
144

Hello Experts,

I too are experiencing some problems with using a Function Module within an Infoset. Is there anyone who has executed this type of functionality in the past? Please help.

Regards,

David

0 Kudos
144

does this [sap library link|http://help.sap.com/saphelp_erp2005vp/helpdata/en/d2/cb4468455611d189710000e8322d00/frameset.htm] helps ?