openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RS_SCRP_GF_RSTATUS:
    post:
      tags:
      - SCR1
      summary: 'Graphical Screen Painter: Request Status (Menu, Fn Keys, Title)'
      operationId: /rfc/RS_SCRP_GF_RSTATUS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: Language
                PROGRAM:
                  type: string
                  maxLength: 40
                  description: Program name
                STATUS_ID:
                  type: string
                  maxLength: 20
                  description: Status
                TITLE_ID:
                  type: string
                  maxLength: 20
                  description: Title (generic)
                FKEYS:
                  type: array
                  items:
                    type: object
                    properties:
                      PFNO:
                        type: string
                        maxLength: 2
                        description: F key number
                      CODE:
                        type: string
                        maxLength: 4
                        description: 'GUI: Function code'
                      TEXT:
                        type: string
                        maxLength: 20
                        description: Short text of a function
                      QUICKINFO:
                        type: string
                        maxLength: 20
                        description: Long text of a function
                      BUTNO:
                        type: string
                        maxLength: 2
                        description: Number of pushbutton
                      ACTIVE:
                        type: string
                        maxLength: 1
                        description: Execute function
                      TCODE:
                        type: string
                        maxLength: 4
                        description: 'GUI: Function code'
                      PROGRAM:
                        type: string
                        maxLength: 40
                        description: ABAP Program Name
                      STATUS:
                        type: string
                        maxLength: 20
                        description: GUI status
                      SYS_ICON:
                        type: string
                        maxLength: 4
                        description: Icon in text fields (substitute display, alias)
                TITLES:
                  type: array
                  items:
                    type: object
                    properties:
                      DDLANGUAGE:
                        type: string
                        maxLength: 1
                        description: Language Key
                      PROGNAME:
                        type: string
                        maxLength: 40
                        description: Program name
                      DDNR:
                        type: string
                        maxLength: 20
                        description: 'Menu Painter: Title code'
                      TEXT_LINE:
                        type: string
                        maxLength: 60
                        description: Text of title line
                TREE:
                  type: array
                  items:
                    type: object
                    properties:
                      POS_1:
                        type: string
                        maxLength: 2
                        description: 'GUI: Menu position'
                      POS_2:
                        type: string
                        maxLength: 2
                        description: 'GUI: Menu position'
                      POS_3:
                        type: string
                        maxLength: 2
                        description: 'GUI: Menu position'
                      POS_4:
                        type: string
                        maxLength: 2
                        description: 'GUI: Menu position'
                      CODE:
                        type: string
                        maxLength: 4
                        description: 'GUI: Function code'
                      TEXTNO:
                        type: string
                        maxLength: 4
                        description: Reference to assigned text
                      SHORT:
                        type: string
                        maxLength: 20
                        description: 'GUI: Short text'
                      LONG:
                        type: string
                        maxLength: 20
                        description: 'GUI: Long text (CUA text until 3.1)'
                      TRANSLATED:
                        type: string
                        maxLength: 1
                        description: Execute function
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'GUI: Menu type  enumValues: ""=Normal Application Function,S=System Function,E=Exit Command (MODULE xxx AT EXIT-COMMAND),H=Internal Use,T=Call a Transaction,P=Local GUI Functions'
                        enum:
                        - ''
                        - S
                        - E
                        - H
                        - T
                        - P
                      FTYPE:
                        type: string
                        maxLength: 1
                        description: 'Function type  enumValues: ""=Normal Application Function,S=System Function,E=Exit Command (MODULE xxx AT EXIT-COMMAND),H=Internal Use,T=Call a Transaction,P=Local GUI Functions'
                        enum:
                        - ''
                        - S
                        - E
                        - H
                        - T
                        - P
                      ACTIVE:
                        type: string
                        maxLength: 1
                        description: Execute function
                      PATH:
                        type: string
                        maxLength: 1
                        description: Fastpath ID
                      PROGRAM:
                        type: string
                        maxLength: 40
                        description: ABAP Program Name
                      STATUS:
                        type: string
                        maxLength: 20
                        description: GUI status
                      INC_POS:
                        type: string
                        maxLength: 2
                        description: 'GUI: Menu position'
              required:
              - PROGRAM
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  FKEYS:
                    type: array
                    items:
                      type: object
                      properties:
                        PFNO:
                          type: string
                          maxLength: 2
                          description: F key number
                        CODE:
                          type: string
                          maxLength: 4
                          description: 'GUI: Function code'
                        TEXT:
                          type: string
                          maxLength: 20
                          description: Short text of a function
                        QUICKINFO:
                          type: string
                          maxLength: 20
                          description: Long text of a function
                        BUTNO:
                          type: string
                          maxLength: 2
                          description: Number of pushbutton
                        ACTIVE:
                          type: string
                          maxLength: 1
                          description: Execute function
                        TCODE:
                          type: string
                          maxLength: 4
                          description: 'GUI: Function code'
                        PROGRAM:
                          type: string
                          maxLength: 40
                          description: ABAP Program Name
                        STATUS:
                          type: string
                          maxLength: 20
                          description: GUI status
                        SYS_ICON:
                          type: string
                          maxLength: 4
                          description: Icon in text fields (substitute display, alias)
                  TITLES:
                    type: array
                    items:
                      type: object
                      properties:
                        DDLANGUAGE:
                          type: string
                          maxLength: 1
                          description: Language Key
                        PROGNAME:
                          type: string
                          maxLength: 40
                          description: Program name
                        DDNR:
                          type: string
                          maxLength: 20
                          description: 'Menu Painter: Title code'
                        TEXT_LINE:
                          type: string
                          maxLength: 60
                          description: Text of title line
                  TREE:
                    type: array
                    items:
                      type: object
                      properties:
                        POS_1:
                          type: string
                          maxLength: 2
                          description: 'GUI: Menu position'
                        POS_2:
                          type: string
                          maxLength: 2
                          description: 'GUI: Menu position'
                        POS_3:
                          type: string
                          maxLength: 2
                          description: 'GUI: Menu position'
                        POS_4:
                          type: string
                          maxLength: 2
                          description: 'GUI: Menu position'
                        CODE:
                          type: string
                          maxLength: 4
                          description: 'GUI: Function code'
                        TEXTNO:
                          type: string
                          maxLength: 4
                          description: Reference to assigned text
                        SHORT:
                          type: string
                          maxLength: 20
                          description: 'GUI: Short text'
                        LONG:
                          type: string
                          maxLength: 20
                          description: 'GUI: Long text (CUA text until 3.1)'
                        TRANSLATED:
                          type: string
                          maxLength: 1
                          description: Execute function
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'GUI: Menu type  enumValues: ""=Normal Application Function,S=System Function,E=Exit Command (MODULE xxx AT EXIT-COMMAND),H=Internal Use,T=Call a Transaction,P=Local GUI Functions'
                          enum:
                          - ''
                          - S
                          - E
                          - H
                          - T
                          - P
                        FTYPE:
                          type: string
                          maxLength: 1
                          description: 'Function type  enumValues: ""=Normal Application Function,S=System Function,E=Exit Command (MODULE xxx AT EXIT-COMMAND),H=Internal Use,T=Call a Transaction,P=Local GUI Functions'
                          enum:
                          - ''
                          - S
                          - E
                          - H
                          - T
                          - P
                        ACTIVE:
                          type: string
                          maxLength: 1
                          description: Execute function
                        PATH:
                          type: string
                          maxLength: 1
                          description: Fastpath ID
                        PROGRAM:
                          type: string
                          maxLength: 40
                          description: ABAP Program Name
                        STATUS:
                          type: string
                          maxLength: 20
                          description: GUI status
                        INC_POS:
                          type: string
                          maxLength: 2
                          description: 'GUI: Menu position'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
