Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

MIR4 POSTING

Former Member
0 Kudos

Hi All,

I'm working on posting of invoice document.But my problem is how to write the coding for posting a document?

The requirement is like this:

When the user with roles u2018MM_RELEASE_INVOICEu2019 login MIR4,

1. to check the authorization user id with roles u2018MM_RELEASE_INVOICEu2019

2. if roles u2018MM_RELEASE_INVOICEu2019 exist for id, then program should check vendor code LIFNR and company code BUKRS, compare to LFB1- LIFNR and LFB1- BUKRS, then ignore the tolerance group LFB1- TOGRR. User will be able to post the data without any error and checking of LFB1- TOGRR.

And my coding is:

IF AGR_USERS-AGR_NAME = 'MM_RELEASE_INVOICE' .

SELECT * FROM LFB1 INTO TABLE IT_LFB1 WHERE LIFNR = RBKPV-LIFNR

AND BUKRS = RBKPV-BUKRS.

IF IT_LFB1-LIFNR EQ RBKPV-LIFNR AND IT_LFB1-BUKRS EQ RBKPV-BUKRS.

HAVE TO CODE HERE FOR POSTING.

ENDIF.

ELSE.

MESSAGE 'YOU ARE NOT AUTHORIZED TO POST' TYPE 'E'.

ENDIF.

Thanks,

srii...

6 REPLIES 6

Former Member
0 Kudos

Any suggestions plz..

Former Member
0 Kudos

can any body suggest me on this..

0 Kudos

Hi,

have a look at BAPI_INCOMINGINVOICE_CREATE.

You can find many threads about this bapi in the abap forum.

Best regards.

0 Kudos

I tried with that but Unable to solve..

if anything else let me know please..

Thanks,

sriii...

0 Kudos

Any suggestions from your side ..Than q