cancel
Showing results for 
Search instead for 
Did you mean: 

Billing document does not exist in VF22

Former Member
0 Kudos

Dear Experts,

We are working on Invoice list it gives output with LR00.

but we have created a new output type ZPGR and assigned in

SD>Billing>Billing document>Invoice List>Maintain Output for Invoice list

Prgram-RLB_INVOICE and smart form ZS_INVOICE_PACK_2_GRP

and VF21 i was able club billing documents. but in VF22 while issuing output it give error 'Billing document does not exist'

checked and found because VBTYP in VBRK for invoice list document(LR) it is 3. but RLB_INVOICE program checking values MNOPSU56.

any idea how to deal with, is there any other program instead of RLB_INVOICE to assign smart form

Please suggest

Regards

Siva

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member505773
Active Participant
0 Kudos

Hi All,

Sorry for didn't update the solution.

We've created a Z print program to resolve this issue.

Former Member
0 Kudos

Hi Sham ,

I got the same requirement . I am new to forms, It is really appreciated if you can share your program to my mail id or here.  Cause I have seen many posts with the same question. Please help me.

Thanks in advance .. 

former_member505773
Active Participant
0 Kudos

Hi Sunkesula,

below is the sample Z print program.

i copy some of the code from RLB_INVOICE and change the sapscript calling method to smartform calling method.

REPORT Z_TEST.

INCLUDE XXXX. "you may define any include you want

INCLUDE XXXX. ""you may define any include you want

*---------------------------------------------------------------------*

*       FORM ENTRY

*---------------------------------------------------------------------*

FORM entry USING return_code us_screen.

  DATA: lf_retcode TYPE sy-subrc.

  CLEAR retcode.

  xscreen = us_screen.

  PERFORM processing USING us_screen

                     CHANGING lf_retcode.

  IF lf_retcode NE 0.

    return_code = 1.

  ELSE.

    return_code = 0.

  ENDIF.

ENDFORM.                    "ENTRY

*---------------------------------------------------------------------*

*       FORM PROCESSING                                               *

*---------------------------------------------------------------------*

FORM processing USING proc_screen

                CHANGING cf_retcode.

  DATA: lf_formname           TYPE tdsfname,

            lf_fm_name            TYPE rs38l_fnam.

* SmartForm from customizing table TNAPR

  lf_formname = tnapr-sform.

* determine smartform function module for invoice

    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

      EXPORTING

        formname           = lf_formname

*       variant            = ' '

*       direct_call        = ' '

      IMPORTING

        fm_name            = lf_fm_name

      EXCEPTIONS

        no_form            = 1

        no_function_module = 2

        OTHERS             = 3.

    IF sy-subrc <> 0.

*   error handling

      cf_retcode = sy-subrc.

      PERFORM protocol_update.

    ENDIF.

  ENDIF.

"call the fm of the smartform. You may pass in any data you would like to display here

CALL FUNCTION lf_fm_name

ENDFORM. " processing

Former Member
0 Kudos

Hi Shyam ,

Thanx for the reply  .

Former Member
0 Kudos

Hello Siva ,

Please try to learn how to close posts, as peoples are spending time and replaying to your queries and guyslike you are just posting answer'ed or solved '.. but not the actual answer .

What is the use of your posts in scn forum . Absolutely no use ... keep in mind and please share your answers and solutions so that in future it would be helpful to many people .

Kindly thing about others also ... Try to be helpful to others also instead of being useless .

Hope you understand . Thnks .

former_member184555
Active Contributor
0 Kudos

Hi Gafoor,


Try to be helpful to others also instead of being useless .

I understand your intention...but, please don't be so harsh. Since it is a professional forum...it is good to deal with others professionally and make them understand.

You have joined the fourm 19 months back and did anybody asked you about your contribution to this forum? Any community will have a mix of different kind of people.

Note: Please do not forget to use the Spell Checker in your future posts.

Thanks,

Ravi Sankar

Former Member
0 Kudos

Thank you for your understanding and, kind reply Shiva .

I may not be the active contributor , but I wish one should respect others response and close the discussion, It will be really helpful for the people like me .

Kindly discuss the solution as descriptive as you ask the question .

  Sorry & Thanks for the reply ...

Former Member
0 Kudos

answered

former_member505773
Active Participant
0 Kudos

Hi Siva,

May i know what is the solution you got?

i'm currently facing the same issue as yours.

Former Member
0 Kudos

Hi Shiva,

What is the Error Message your are getting?

Thx,

Edited by: Raga on Apr 15, 2010 6:08 AM

Former Member
0 Kudos

Hi Raga,

Error msg is 'Billing document does not exist' and ABAP consultatnt told that VBTYP in VBRK for my invoice list is value '3'(whihc is obvious as 3 is for Invboice list) but base program RLB_INVOICE cheks a constant which has only 'MNOPSU56'

Please feed back

Regards,

Siva

Former Member
0 Kudos

Hi Shiva,

Please Check with this notes 429683

It may help you

Regards,

Seegal