2007 Jan 03 3:28 PM
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.
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
2007 Jan 03 3:38 PM
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
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |