Skip to Content
avatar image
Former Member

Print sales order via Smartforms

Dear all!

I want to print out the sales order by using Smartforms. I have to use a custom form.

First, I created my own output type. I created a simple Smartform just to see if it works out. Unfortunately its not working. When I do the customizing in transaction NACE and set the program RVADOR01 together with my smartform, I get an error. In our IDES system I could see that they are using the program SD_SDOC_PRINT01, but this one is not available on our customers installation.

Could somebody tell my which program I have to customize? And is somebody able to tell me the smartforms interface so that I can be sure that it's correct? Actually, I'm using the same interface definition that is defined in the smartforms interface in our IDES system (i.e. form SD_SDOC_FORM01).

Thanks a lot!

Best regards,

Florian

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 12, 2011 at 05:32 AM

    Hi Florian,

    There is a small difference between a simple program and a program used for an output type. A program for an output type should have the document number as the input. This information is available only when the document is saved. So teh output is triggered when the document is committed in the table but before getting out of the screen. So you have to enable your program ins uch a way that when the program is executed the document number is made available automatically to the program.

    This needs a piece of code, which we generally dont do in normal reports. It will be better if you post this in ABAP or smartform forum, where people can tell you teh exact syntax for this. Here you may not get much info. However I feel that this is the root cause of the issue. So proceed on this path.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 18, 2011 at 07:05 PM

    Hello, check this form for order confirmation: /SMB11/BL_SDORC_L. Recommendation is to make a Zsmartform for your tests. Transaction = SMARTFORMS.

    Also try look at table TNAPR: Processing Programs for Output. Compare this to your output type (e.g. BA00) configs. You may troubleshoot by using the keys in that table (e.g. Application = V1: Sales in table TNAPR, Form Routine = ENTRY, et cetera).

    For additional needs, the program: /SMB40/RVADOR01 can be modified by your developer and you can adjust your output type configs accordingly.

    Hope this helps,

    Eva

    Edited by: EvaO on Jan 18, 2011 8:05 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 27, 2011 at 04:59 PM

    Closed

    Add comment
    10|10000 characters needed characters exceeded