Skip to Content
author's profile photo Former Member
Former Member

RPAQ_GET_AF_0168 Inconsistent Results

I used this FM successfully in another program so when I needed it again I just copied what I had and used it:

CALL FUNCTION 'RPAQ_GET_AF_0168'
    EXPORTING
      c_it0168  = gv_pa0168
    IMPORTING
      af_values = gv_p0168_af
    TABLES
      af_fields = gt_rhtext_field.

However, even if I pass the exactly same PA0168 record in the new program the structure gv_p0168_af is "empty" (all initial values) whereas the other program, with the same 168 record, returns actual results.

I'm at a loss. Any ideas as to what might be going on?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 09:26 PM

    If you check the main program for this FM, I think you'll find that it checks the name of the program or transaction code or both and behaves differently in different cases.

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 08:56 PM

    Hello Steve,

    2 recommendations:

    - check the structures for EXPORTING, IMPORTING and TABLES. They have to be 100% consistent with the FM parameters.

    - debug the FM, specifically where the information you are expecting is taken from.

    In my opinion, this "non-delivery" (as the message says) can only be caused by a parameter-inconsistency. Even one missing byte in a data element can cause such an unexpected trouble.

    I wish you the best in your investigation. Hope this helps,

    Heinz

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 09:07 PM

    Hi,

    Check the declearation for gv_pa0168, gv_pa0168_af and also table.

    Thnaks

    Vikranth

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.