Skip to Content
avatar image
Former Member

Standard text display in sap script

Hi Experts,

The standard text will be stored in Name = ORDCONF_TEXT_(sales org)_(distributionchannel)_(division)

Text ID = ZSD

Examples: ORDCONF_TEXT_4000_01_01 , ORDCONF_TEXT_4000_01_80 , ORDCONF_TEXT_1000_01_01.

Requirement :

The print program /form will need to pick up the appropriate standard text based on the Sales Area (combination of Sales Org / Distribution Center / Division) of the sales order [VBAK-VKORG / VTWEG / SPART], provided a standard text has been created for that Sales Area. Itu2019s not required that every sales area have a standard text, so if one is not found, this step should be skipped and the rest of the print program executed.

The new text should print after 2 blank lines after the Printable Notes text (which is after the line items and the Total Net Price prints).

The font should be the same size as the Printable Notes, but bolded rather than italicized.

The text should print in the same columns as the Printable Notes currently print in (Material Description / Scheduled Ship Date / Quantity) .

So the logic i have used is this below code:

I used a subroutine in the layout of the main window becoz i need to print it in the main window below after 2 blank lines of line items.

This is logic in the layout:

/: DEFINE &ORDCONF_TEXT& :='ORDCONF_TEXT_&VBDKA-VKORG&_&VBDKA-VTWEG&_

/: &VBDKA-SPART&'

/:PERFORM GET_OBJECT IN PROGRAM ZSDRP001_ORD_CONF_IRE

/:USING &VBDKA-VBELN&

/:CHANGING &ORDCONF_TEXT&

/:ENDFORM

/:INCLUDE &ORDCONF_TEXT& OBJECT TEXT ID ZSD PARAGRAPH A1

I called this subroutine in the print program:

Logic in the print program:

Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code

But still its not getting printed .Plz tell me where i am going wrong.

Thanks,

Suman

Edited by: Rob Burbank on Nov 13, 2009 4:18 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Nov 13, 2009 at 08:52 PM

    Please debug it and tell us where you have a problem

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 04, 2009 at 05:27 PM

    This question is solved.

    Thanks to all the members of SDN who helped me to solve this issue.

    Thank once again to one and all.

    --Sirisha

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 29, 2009 at 04:33 PM

    Hi sirisha

    I have clarification

    The standard text will be stored in Name =COCDADDR_TEXT_(paying company)

    Text ID = ADRS

    Examples: COCDADDR_TEXT_0500, COCDADDR_TEXT_1000, COCDADDR_TEXT_2401,COCDADDR_TEXT_2405,COCDADDR_TEXT_7600,COCDADDR_TEXT_7700

    Requirement :

    The print program /form will need to pick up the appropriate standard text based on the paying companycode of the REGUH-ZBUKR, provided a standard text has been created for that paying companycodes. Itu2019s required that every sales area have a standard text (ADDRESS of company), so if one is not found, this step should be skipped and the rest of the print program executed.

    I need the steps similar to ur issue.

    Thanks in advance

    Senthilkumar

    Add comment
    10|10000 characters needed characters exceeded