moito blog

Skip to content
  • Home
  • Страници
  • България
    • Добри хотели в България
    • София
  • IT
  • други
    • екология
    • здравословно
    • интересно
  • мнение, опит
  • Пари
  • туризъм
  • хумор/humor
  • Архив

Output types, output determination SAP SD (ABAP) – setup, debugging, print programs

2023-04-29IT, другиABAP, HTML email, Output determination, Print forms, QR code, SAP, SD, send emailA

Transaction: VL02N

Transaction: VL02N

Press enter to lock the delivery and enter in edit mode of the document.

You can create or change/display the output for this document by choosing from Menu: Extras -> Delivery Output -> Header

Sample delivery note output program RLE_DELNOTE. You can see how to define the ENTRY form routine which is called by the SAP output framework.

FORM ENTRY USING RETURN_CODE US_SCREEN.

  DATA: LF_RETCODE TYPE SY-SUBRC.
  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.

You will need some GLOBAL definitions and it is best to include the following:

INCLUDE rvadtabl.

Debugging output

Put a breakpoint in the output program and start manual processing of the output using program (SE38):

RSNAST00

How to return some info or error message in the Output log

Use a call to the following routine:

FORM PROTOCOL_UPDATE.

  CHECK XSCREEN = SPACE.
  CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
       EXPORTING
            MSG_ARBGB = SYST-MSGID
            MSG_NR    = SYST-MSGNO
            MSG_TY    = SYST-MSGTY
            MSG_V1    = SYST-MSGV1
            MSG_V2    = SYST-MSGV2
            MSG_V3    = SYST-MSGV3
            MSG_V4    = SYST-MSGV4
       EXCEPTIONS
            OTHERS    = 1.

ENDFORM.

If you output error messages they will be kept in the output log for the user to analyse the reason for the failure of the output.

Output determination – Documentation

https://help.sap.com/docs/SAP_S4HANA_ON-PREMISE/7b24a64d9d0941bda1afa753263d9e39/1efdb753128eb44ce10000000a174cb4.html?locale=en-US

Other useful sites and articles

Output Configuration and Determination in SAP SD

and how to debug output determination and execution:

http://sapknowledgebank.blogspot.com/2018/10/message-output-type-debugging.html

Generally the solution is to change from 4-Immediate output (via background task) to 1-with program and use RSNAST00. This can be achieved in Messages output changing Extras > Output > Header > Edit), click on the button ‘Further data’ and selecting “1”. Also put a breakpoint in output program and run RSNAST00 to start output manually in Dialog mode.


Send HTML email using template in ABAP

https://github.com/vidyadharg/ABAP-HTML-eMail

and “Creating QR code in ABAP” video: https://www.youtube.com/watch?v=DQdKnmon8II

Post navigation

← Царят и Велчевите придворни SAP HANA versions and year of release →

Recent Posts

  • Каква е истинката цена на сателитната телевизия?
  • ABAP useful info, pages, videos
  • iPhone battery replacement / смяна на батерия на Айфон
  • Dark patterns in UI/UX (user interface / experience)
  • SAP HANA versions and year of release

Recent Comments

  • Ф on Смяна на лична карта, шофьорска книжка в КАТ София
  • Ф on Смяна на лична карта, шофьорска книжка в КАТ София
  • moito on Смяна на лична карта, шофьорска книжка в КАТ София
  • и on Смяна на лична карта, шофьорска книжка в КАТ София
  • se* on The first mobile phone navigation war – NOKIA sux

Archives

Categories

  • "Царят" да му … …
  • Android
  • Android for Jolla
  • Apple Mac iOS OSX
  • GPS coordinates
  • IT
  • Jolla
  • Renault Laguna 3 Grandtour
  • Sadhguru
  • банки
  • Банки
  • БСП и АТАКА
  • България
  • Български бизнес
  • ВЕИ
  • Гърция, Турция, Сърбия, Румъния, БСР Македония
  • Джи Пи Ес координати
  • ДПС
  • други
  • екология
  • здравословно
  • Инвестиции
  • Интелектуална собственост
  • интересно
  • мнение, опит
  • онлайн
  • пазаруване
  • Пари
  • политика
  • работа/кариера
  • София
  • тройната коалиция
  • туризъм
  • Филми заслужаващи си времето
  • хумор/humor

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Proudly powered by WordPress