on 08-30-2007 10:12 AM
Hi, I have a problem, I need to print a delivery note which I created using SE38 (just using write command) automatically after I click post good issue button. I have tried 2 ways for doing it :
1. Set up a BADI on Material Management Side but it doesn't work for the case if the delivery is created using VL01N and then post good issued directly without saving it as the data hasn't been saved in LIPS table.
2. Set up Output Type in Logistic Execution :
- Created a new Output type and I set dispatch time to 4 -> Send immediately ( when saving document)
- Created a new output determination procedure, set requirements to 1.(Post GI)
- Assign it to Delivery Type
- Using VV21 I created new conditions record for output type that I created and set the dispatch time to 4 (Send immediately).
When I created a Delivery Order then post good issued it, it says it's saved but nothing printed. When I go to VL02N Change mode, there is something saying Update was terminated.
In processing routine program for my output type there are lines :
submit y7vr_invoice ---> my print program
with s_vbeln = NoDO --->parameters
to sap-spool
spool parameters print_parameters
without spool dynpro
and return.
Update was terminated occurred on line "submit Y7vr_invoice"
When I change dispatch time in conditions record (VV22) to 3, no error but still no automatic printing.
Anybody can help me?Anything I missed?
Thanks
DP
already solved...
using those BADI but calling my se38 program..
thanks for the help..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I got stuck on Call Transaction Line, as it opened VL71 screen and stop right there as the medium field was empty so it couldn't proceed to the next screen, I tried calling function module created from SHDB to do the VL71 stuff but it didn't work either.
Can you explain more on call transaction line ?
Does it print automatically without pressing any buttons? or we need to press F8?
Thanks..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dwi,
Did the solution given by me helped you.
Do let me know the status and any other help required.
REWARD if it helped you!!
Regards,
Ajinkya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dwi,
I have configured the same requirement for my project. The logic was written in delivery badi ( DELI_BADI) in method Save and Publish document
for you reference ************************************
METHOD if_ex_le_shp_delivery_proc~save_and_publish_document .
COMMIT WORK AND WAIT.
IF sy-ucomm = 'WABU_T'.
DATA : wa_xlips TYPE lips.
READ TABLE it_xlips INTO wa_xlips INDEX 1.
IF wa_xlips-spart = '51' OR wa_xlips-spart = '52' . {DIVISIONS used in my project}
DATA :rg_vbeln TYPE likp-vbeln.
DATA :rg_kschl TYPE nase-kschl.
DATA :wa_xlikp TYPE likp .
READ TABLE it_xlikp INTO wa_xlikp INDEX 1.
MOVE wa_xlikp-vbeln TO rg_vbeln.
rg_kschl = 'ZLL1'. { DELIVERY OUTPUT TYPE}
SET PARAMETER ID 'NAC' FIELD rg_kschl.
SET PARAMETER ID 'VL' FIELD rg_vbeln.
CALL TRANSACTION 'VL71'. "USING ITAB-kschl = 'ZLL1'.
IF sy-subrc NE 0.
LEAVE SCREEN.
ENDIF.
ENDIF.
ENDIF.
ENDMETHOD.
Hope the same logic helps you too.
REWARD if it helps you!!
Regards,
Ajinkya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.