Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Reg interactive report.

Hi,

I am working on interactive report. Initial screen i am getting customer no. When ever i am clicking the customer no i want to disply the sales order details. But i am getting total customer details. I want particular customer detials only. Check the code waht i am declaring.

AT LINE-SELECTION.
  SET PF-STATUS 'ZSRINU'.
  IF sy-lsind = 1.
    PERFORM so_header.
  ENDIF.
  IF sy-lsind = 2.
    PERFORM get_sales_item.
  ENDIF.

AT USER-COMMAND.
  CASE sy-ucomm.
    WHEN 'SO_ITEM'.
      PERFORM get_sales_item.
    WHEN 'SO_DOCUMEN'.
      PERFORM display_document.
  ENDCASE.

  DATA : var(20).
  GET CURSOR FIELD var.
  IF var = 'V_KNA1-KUNNR'.
    IF sy-lsind = 1.
      PERFORM so_header.
    ENDIF.
  ENDIF.
  DATA : var1(20).
  GET CURSOR FIELD var.
  IF var1 = 'V_VBAK-VBELN'.
    IF sy-lsind = 2.
      PERFORM get_sales_item.
    ENDIF.
  ENDIF.

Regards

Srinu

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question