Ir al contenido principal

ABAP Submit ALV

 Cuando queremos llamar a un programa por medio de un SUBMIT, pero el programa que llamamos genera un ALV como resultado, el mismo queda bloqueado con esa lista A LV y no regresa al programa llamador.

Pero si utilizamos la variante "EXPORTING LIST TO MEMORY", obligamos al programa a retornar sin mostrar el ALV.

Ejemplo:


  SUBMIT zprograma2
         WITH trn  = space
         WITH tro  = 'X'
         WITH werks IN so_werks
         WITH cpudt IN so_cpudt
         WITH p_n1  = abap_true
         EXPORTING LIST TO MEMORY   "sentencia importante
         AND RETURN.

Fuentes:

https://answers.sap.com/questions/11025873/how-to-call-an-alv-report-from-another-program-and.html


Comentarios

Entradas más populares de este blog

How to add custom field in Additional B Tab for SAP Sales Order In this article we want to explain step by step how to add custom field in SAP Sales Order transaction VA01/VA02/VA03. This time Mr ABAPGurus will give the tutorial of enhancement to add custom field in SAP Sales order. In this sample we will add new custom field for comments and customer satisfaction, this data will save into separate table from SAP Standard table ( VBAK / VBAP ). SAP provided us with ADDITIONAL TAB in the sales order transaction ( VA01/VA02/VA03 ) which allow customer to add custom fields.  T he different between ADDITIONAL A and ADDITIONAL B is the ADDITIONAL A for field which already predefine in Sales Order Header ( VBAK ) fields and ADDITIONAL B is for field that freely define. This sample we will use ADDITIONAL B because we will store data from customer satisfaction into Z database table. 1. Create one Z table using SE11 SAP Transaction code. 2.Using SE38 Transactio...

A to Z of OLE Excel in ABAP 7.4

  SAP users, both business and end users always need to download the output of a report to spreadsheet and do their analytics.   The standard excel output from a report is very simple process but it is old fashioned and the spreadsheet looks quite boring.  There is no default formatting and the users have to do all the hard work of changing the fonts, coloring the texts, marking the borders etc. Updated 16th Aug 2019  –  If you are working in non-ABAP 7.4 (below), there is complete reference program for you too. Go to the end of this article.  Thank you  Legxis  ( LeonievonK ) for the share. I acknowledge, whatever I mentioned above can be achieved in many ways programmatically. We can do it in the old traditional ABAP way but  providing multiple tabs in the spreadsheet and formatting is quite tricky with non  OLE  method. OLE = Object Linking and Embedding The high level agenda of this article is to be the  G.O.A.T.  (ple...

Cómo crear un LOG SLG1 (SLG0 - SLG2)

  Cuando creamos un programa que realiza actualizaciones de la base de datos como por ejemplo una carga masiva, es interesante poder   ver los mensajes y el estado de cada una de las actualizaciones en un Log  que podremos consultar cuando sea necesario desde las transacciones que nos proporciona SAP. Estas son: SLG0 : Crear objeto y subobjeto del Log. SLG1: Visualizar Logs. SLG2: Borrar Logs. ESTRUCTURA DEL LOG: Antes de nada, veamos la información que nos proporciona un Log:  Contiene información de cabecera ( tipo , creador, nº de log, Fecha, Programa desde el que se ha creado el log…) y un listado de mensajes que pueden ser de 3 tipos: error, warning y correcto. En el listado de mensajes podremos filtrar por tipo de mensaje simplemente pulsando en la barra el tipo que queramos ver. CREAR UN LOG 1. SLG0-El primer paso es crear el objeto y sub-objeto log Es una forma de clasificar los logs , deberemos dar un nombre al objeto y subobjeto con el que luego crearemos n...