on 07-29-2013 7:13 AM
Dear all,
we maintained bapi to output to do automatic billing after PGI. PGI complete status showing but not happening automatic billing. i could't able to find, previously, it was working. not its not.
warm regards,
Jagadeesh
Message subjected line was edited by Moderator - Priority Normalized
Kindly provide some evidence of what analysis / research has been done prior to posting on SCN.
Regarding any issues with custom development the first point of contact should be the local ABAP developers, not SCN.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
According to me there are two way to fulfil your requirement.
1) Schedule VF04 in background with your required criteria.
2) Use below FM with help of you technical guys.
CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
TABLES
BILLINGDATAIN = BILLINGDATAIN
RETURN = RETURN_BILL
SUCCESS = SUCCESS.
Thank$$
PG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
1) Can you please provide detail step with screen shot so i can suggest better way.
2) At which step you have called this BAPI?
3) You may refer below code. Pl write commit work if not written.
IF BILLINGDATAIN[] IS NOT INITIAL.
CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
TABLES
BILLINGDATAIN = BILLINGDATAIN
RETURN = RETURN_BILL
SUCCESS = SUCCESS.
LOOP AT RETURN_BILL WHERE TYPE = 'E'.
PERFORM GET_MESSAGE USING RETURN_BILL-ID RETURN_BILL-NUMBER CHANGING STRMSG.
MESSAGE STRMSG TYPE 'E'.
CLEAR RETURN_BILL.
ENDLOOP.
COMMIT WORK AND WAIT.
WAIT UP TO 4 SECONDS.
READ TABLE SUCCESS INDEX 1.
PGITXT = SUCCESS-BILL_DOC.
PID_VF = SUCCESS-BILL_DOC.
Thank$$
PG
Hello Jagadeesh,
I guess you have a user-exit or badi implemented which is calling a bapi to create the billing document after the goods issue... If is not working you should ask for help to an ABAPER.
However, I think, a better solution would have been to schedule a job running VF04.
Kind regards,
Fortian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
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.