never tried it but once while calling sabre they gave me this script.
*AE
W‡EMD*AE1 OR 1/2 (if you're doing RT)
Playing with adding bag (save pax $15 on LY), seems to be roughly the same idea. Here's what I've got so far:
WPAE-SA*T2 - or whatever ticket line number you are doing. Also possible to do multiple via "-" or "/". For bag switch out "SA" with "BG"
AE¥1A1 - First "1" is quantity, second is line on extra desired. "¥N1.1" etc valid for name select. Multiple lines can be selected via "," separator (on LY each segment has its own line, so NYC-TLV would be one line and TLV-NYC another).
Then it's stored in the record similar to a WD. Once it is stored you can check the status with *AE. I think you can only issue the EMD once the status switches from HN to HD, and you have 24 hours from getting the HD to issue the EMD