cancel
Showing results for 
Search instead for 
Did you mean: 

issue:Automatic billing

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Jelena
Active Contributor
0 Kudos

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.

piyush_gajera
Participant
0 Kudos

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

Former Member
0 Kudos

hi piyush,

bapi implemented, if i maintain output records at item level its triggering (manully), but not coming automatically. where it refelects, i could't able to find.

Jagadeesh

Former Member
0 Kudos

hi piyush,

bapi implemented, if i maintain output records at item level its triggering (manully), but not coming automatically. where it refelects, i could't able to find.

Jagadeesh

piyush_gajera
Participant
0 Kudos

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

fortian
Active Contributor
0 Kudos

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