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: 

Dynamic QR Code for E-Invoicing purpose

Former Member
0 Kudos
6,039

Hi Experts,

We need to print the QR status in smartform dynamically for E-Invoicing purpose. Please guide..

Best Regards,

Mahesh Kumar.

10 REPLIES 10

0 Kudos
1,585

Please check these SAP Notes:

2880604 - GST India: IRN Data Dictionary Activities for Non-Integrated Solution
2879178 - GST India: Invoice Reference Number (IRN) details Capture report - J1IGIRN.

Pritish_Saha
Product and Topic Expert
Product and Topic Expert
0 Kudos
1,585

Dear Mahesh,

Please check below SAP Note:

2884502 GST India : Corrections to print IRN and QR Code in Invoice Form

Hope this helps!

0 Kudos
1,585

Hi Pritish,

Our SAP system do not support SAP S4HANA implementation and Note 2884502 description is: GST India S4HANA: Corrections to print IRN and QR Code in Invoice Form.

Can you please suggest the alternative SAP Note to implement it for SAP R/3 ?

Lakshmipathi
SAP Champion
SAP Champion
1,585

Please have a look at OSS notes 2030263, 2029824 & 2029589

0 Kudos
1,585

Hi Ganesan,

Thanks for replying. The above mentioned notes are not the alternative for 2884502 as it contains corrections which changes the GST specific smartform with IRN and QR Code window.

But the OSS Notes 2030263, 2029824 & 2029589 do not has such features that we can implement.

Can you please provide some other solutions if any?

VijayaKrishnaG
Active Contributor
0 Kudos
1,585

Hi,

Did you get the solution looking for?
Are you looking for solution on How to convert / decode the Encrypted QR Code given by GST IND portal?

Thanks,

Vijay Krishna G

prateek_dhawan18
Participant
0 Kudos
1,585

Hi

Create a SO10 text with text as <C9>&str1&&str4&&str5&&str6&&str7&&str8&&str9&</> .

C9 - is the character format in smart style which will contain your barcode name.

Also create a paragraph format in smart style as per your requirement to adjust the QR code

We know that in E-Invoicing IRN contain 3 strings which are combined with '.' .try to implement below code in your smartform.

DATA lt_swastrtab TYPE TABLE OF swastrtab.

DATA lw_swastrtab TYPE swastrtab.

*Get your dynamic qr code into gv_qrcode

gv_qrcode = gw_irn-signedqrcode.

CLEAR : str1, str2, str3.

SPLIT gv_qrcode AT '.' INTO : str1 str2 str3.

CONCATENATE str1 '.' INTO str1.CONCATENATE str2 '.' INTO str2.

CALL FUNCTION 'SWA_STRING_SPLIT'

EXPORTING input_string = str2

max_component_length = 255

TABLES

string_components = lt_swastrtab.

IF lt_swastrtab IS NOT INITIAL.

CLEAR lw_swastrtab-str.

LOOP AT lt_swastrtab INTO lw_swastrtab.

CASE sy-tabix.

WHEN '1'.

str4 = lw_swastrtab-str.

WHEN '2'.

str5 = lw_swastrtab-str.

WHEN '3'.

str6 = lw_swastrtab-str.

WHEN '4'.

str7 = lw_swastrtab-str.

ENDCASE.

CLEAR lw_swastrtab-str.

ENDLOOP.

ENDIF.

REFRESH lt_swastrtab.

CALL FUNCTION 'SWA_STRING_SPLIT'

EXPORTING input_string = str3

max_component_length = 255

TABLES

string_components = lt_swastrtab.

IF lt_swastrtab IS NOT INITIAL.

CLEAR lw_swastrtab-str.

LOOP AT lt_swastrtab INTO lw_swastrtab.

CASE sy-tabix.

WHEN '1'.

str8 = lw_swastrtab-str.

WHEN '2'.

str9 = lw_swastrtab-str.

ENDCASE.

CLEAR lw_swastrtab-str.

ENDLOOP.

ENDIF

0 Kudos
1,585

Hi

When I try the character type C9 instead of C1 I am getting the output with encoded form not as QRCODE. Can u pls help me to rectify the issue.

Regards

Dinesh

0 Kudos
1,585

Hi Dinesh

Try to create a QR code in system by following the steps below:

1. Execute Transaction code ‘SE73’.
2. Select ‘system bar codes’ radio button and click on ‘change’.
3. Click on ‘Create’ button, Select ‘New’.
4. Enter the barcode name as ‘ZXXX' and Description
5. Select ‘QR Code 2005’ radio button and click on Enter.
6. Select ‘Normal’ radio button and click on Enter.
MODE = A , Module size - 00012 Errcorrlevel - L

After that put the same qrcode code name is smartstyles.

former_member707763
Discoverer
0 Kudos
1,585

QR Code for B2B Invoices

The e-invoice mandate in India requires the specified entities to get their invoices registered with the Government designated system i.e. Invoice Registration Portal (IRP). Not all documents nor all transactions are covered under e-invoicing. The current scope includes invoices, debit notes and credit notes issued to other registered parties i.e. B2B transactions and also export invoices.