Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

get parameter id

Former Member
0 Likes
373

hi everyone,

i have a program that call to smartforms.

i use the program in transactions: me9k, me9f, me22n.

my problem is that when i use this program with the command: get parameter id 'BES' field p_ebeln - in transaction me9k it always bring me the last order no from transaction me9f.(although i did "free memory").

how can i get the agreement number in transaction ke9f with this command (get parameter id...)?

thank you.

dana.

1 REPLY 1
Read only

Former Member
0 Likes
310

Hi Dana,

To get contracts you need use parameter id should be 'CTR'

        GET PARAMETER ID 'CTR' FIELD s_ebeln-low.
Try this pseudo code.
      CASE wal_order-bstyp.
        WHEN 'F'.                      "Bestellung
          GET PARAMETER ID 'BES' FIELD s_ebeln-low.
          p_kappl = 'EF'.
          r_bstyp-low = 'F'.
        WHEN 'A'.                      "Anfrage
          GET PARAMETER ID 'ANF' FIELD s_ebeln-low.
          p_kappl = 'EA'.
          r_bstyp-low = 'A'.
        WHEN 'K'.                      "Kontrakt
          GET PARAMETER ID 'CTR' FIELD s_ebeln-low.
          IF s_ebeln-low IS INITIAL.
            GET PARAMETER ID 'VRT' FIELD s_ebeln-low.
          ENDIF.
          p_kappl = 'EV'.
          r_bstyp-low = 'K'.
        WHEN 'L'.                      "Lieferplan
          GET PARAMETER ID 'SAG' FIELD s_ebeln-low.
          IF s_ebeln-low IS INITIAL.
            GET PARAMETER ID 'VRT' FIELD s_ebeln-low.
          ENDIF.
          r_bstyp-low = 'L'.
          CASE t160-vorga.
            WHEN 'K'.                  "Lieferplanrahmen
              p_kappl = 'EV'.
            WHEN 'LE'.                 "Lieferplanabruf
              p_kappl = 'EL'.
          ENDCASE.

Regards,

Raghav