Application Development and Automation 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: 
Read only

Problem filling CC authorization data to BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
1,509

Hi all,

I'm facing an issue after creating an order using the BAPI_SALESORDER_CREATEFROMDAT2. I'm authorizing the credit card by calling the simulate bapi and if authorization received, passing the authorization data to the create bapi. everything is fine except that i could see and extra line in the payment cards tab with only CC NUM, CC NAME, CC Expiry date, CC_LIMITED(checked).

Issue is only when we are having the split authorization

Below is the data i'm passing to the create bapi

CC_TYPE = Getting from Simulae BAPI

CC_NUMBER = Getting from Simulae BAPI

CC_VALID_T = Getting from Simulae BAPI

CC_NAME = Getting from Simulae BAPI

AUTHAMOUNT = Getting from Simulae BAPI

CURRENCY = Getting from Simulae BAPI

CURR_ISO = Getting from Simulae BAPI

AUTH_DATE = Getting from Simulae BAPI

AUTH_TIME = Getting from Simulae BAPI

CC_AUTTH_NO = Getting from Simulae BAPI

AUTH_REFNO = Getting from Simulae BAPI

CC_REACT = Getting from Simulae BAPI

CC_RE_AMOUNT = Getting from Simulae BAPI

GL_ACCOUNT = Getting from Simulae BAPI

CC_STAT_EX = Getting from Simulae BAPI

CC_REACT_T = Getting from Simulae BAPI

MERCHIDCL = Getting from Simulae BAPI

AUTH_FLAG = "X"

AUTHORTYPE = "A"

DATAORIGIN = "E"

CC_LIMITED = ""

If i'm not passing CC_LIMITED = "" then it is trying to create another authorization even after filling AUTH_FLAG = "X".

Can someone help me out in figuring out where the issue is?

Thanks in advance

Satya

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,145

Satya,

The stadard functionality of BAPI_SALESORDER_CREATEFROMDAT2 when passing in authorization details obtained previously is to create 2 lines in the FPLTC table:

1) The Request Line: This contains the card type, card number, expiration date and cardholder name.

2) The Response Line: This contains the same information as the Response (except the cardholder name) with the addition of the Amount, Authorization Code, Authorization Reference code, etc.

The first line (Request Line) MUST be in the order or no subsequent authorizations can be performed if needed. The second line (Response Line) will have a Green Traffic Light if it is an APPROVED response and is the one SAP uses to determine if Delivery and Billing can be performed.

Are these the two lines you see?

Eric Bushman

VP, Solutions Engineering

[Paymetric|https://www.paymetric.com]

Satya,

The stadard functionality of BAPI_SALESORDER_CREATEFROMDAT2 when passing in authorization details obtained previously is to create 2 lines in the FPLTC table:

1) The Request Line: This contains the card type, card number, expiration date and cardholder name.

2) The Response Line: This contains the same information as the Response (except the cardholder name) with the addition of the Amount, Authorization Code, Authorization Reference code, etc.

The first line (Request Line) MUST be in the order or no subsequent authorizations can be performed if needed. The second line (Response Line) will have a Green Traffic Light if it is an APPROVED response and is the one SAP uses to determine if Delivery and Billing can be performed.

Are these the two lines you see?

Eric Bushman

VP, Solutions Engineering

[Paymetric|https://www.paymetric.com]

6 REPLIES 6
Read only

Clemenss
Active Contributor
0 Likes
1,145

Hi Satyanarayana,

sorry, I can't read your code.

Regards,

Clemens

Read only

Former Member
0 Likes
1,146

Satya,

The stadard functionality of BAPI_SALESORDER_CREATEFROMDAT2 when passing in authorization details obtained previously is to create 2 lines in the FPLTC table:

1) The Request Line: This contains the card type, card number, expiration date and cardholder name.

2) The Response Line: This contains the same information as the Response (except the cardholder name) with the addition of the Amount, Authorization Code, Authorization Reference code, etc.

The first line (Request Line) MUST be in the order or no subsequent authorizations can be performed if needed. The second line (Response Line) will have a Green Traffic Light if it is an APPROVED response and is the one SAP uses to determine if Delivery and Billing can be performed.

Are these the two lines you see?

Eric Bushman

VP, Solutions Engineering

[Paymetric|https://www.paymetric.com]

Read only

0 Likes
1,145

Thanks Eric for the answer. I'm able to figure out the issue. It was with the way i'm passing the authorization data to the create bapi.

Thanks

Satya

Read only

0 Likes
1,145

Please assign p0ints to helpful suggestions and mark this thread as 'solved'.

Rob

Read only

0 Likes
1,145

>

> Thanks Eric for the answer. I'm able to figure out the issue. It was with the way i'm passing the authorization data to the create bapi.

>

> Thanks

> Satya

If you have Solved out the Query than Please Close this Question.

Faisal

Read only

0 Likes
1,145

Hello,

It seems the problem what Satya faced is similar to my current issue I am facing. The issue is that I want to attach an External System authorization to the Sales Order, by passing the values in the ORDER_CCARD table. When I do that, although the sales Order gets created successfully. But when the user saves the order it is reauthorizing again.

We are using Pay metric Credit card authorizations.

Please let me know any solution or ideas to this issue.

Regards,

Prabhu Avanti