Entering payment cards information in sales order
Hi Folks,
I am uploading the payment cards information in sales order using transaction VA02. I need to check if there is an already existing payment card in order to know the line number to enter the new card information. I know that FPLTC table has the information about the payment cards. How can I read the already existing lines and pass the new card information in the new line?
Thanks,
RAJ
Tables: VBAK, FPLTC, FPLA.
Hi,
I am attaching my code. It would be really helpful for me if someone can tell me what should be the exact key to read the data. Somehow only one condition is true in this case.
Data : Begin of itab occurs 0,
VBELN(10) type C, "Sales order Number
AUTWR(15) type C, "Maximum amount
end of itab.
DATA : Begin of itab1 occurs 0,
FPLNR LIKE FPLTC-FPLNR,
FPLTR LIKE FPLTC-FPLTR,
ccnum like FPLTC-CCNUM,
CCINS LIKE FPLTC-CCINS,
END OF ITAB1.
DATA : ITABH LIKE ITAB OCCURS 0 WITH HEADER LINE,
ITABI LIKE ITAB OCCURS 0 WITH HEADER LINE.
include bdcrecx1.
Parameter : PATH(128) OBLIGATORY.
start-of-selection.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = PATH
FILETYPE = 'DAT'
TABLES
DATA_TAB = itab.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
SORT ITAB1.
Select FPLTCFPLNR FPLTCFPLTR FPLTCCCNUM FPLTCCCINS into
corresponding fields of itab1 from FPLTC INNER JOIN vbak on fpltc~Fplnr
eq vbak~Rplnr.
ENDSELECT.
ITABH[] = ITAB[].
ITABI[] = ITAB[].
SORT ITABH.
DELETE ADJACENT DUPLICATES FROM ITABH COMPARING vbeln.
perform open_group.
Loop at itabh.
perform bdc_dynpro using 'SAPMV45A' '0102'.
perform bdc_field using 'BDC_CURSOR'
'VBAK-VBELN'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'VBAK-VBELN'
ITABh-VBELN.
perform bdc_dynpro using 'SAPMV45A' '4001'.
perform bdc_field using 'BDC_OKCODE'
'=KRPL'.
Read table itab1 with key FPLNR = VBAK-RPLNR.
perform bdc_dynpro using 'SAPLV60F' '4001'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'RV60F-CCBEG(03)'.
perform bdc_field using 'FPLTC-CCINS(03)'
'CHCK'.
perform bdc_field using 'FPLTC-CCNUM(03)'
'0000000000000001'.
perform bdc_field using 'CCDATE-EXDATBI(03)'
'12/2009'.
perform bdc_field using 'RV60F-CCBEG(03)'
'X'.
if sy-subrc <> 0.
perform bdc_dynpro using 'SAPLV60F' '4001'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'RV60F-FAKWR(02)'.
perform bdc_field using 'RV60F-FAKWR(02)'
ITABh-AUTWR.
perform bdc_dynpro using 'SAPLV60F' '4001'.
perform bdc_field using 'BDC_OKCODE'
'=CCMA'.
perform bdc_field using 'BDC_CURSOR'
'FPLTC-CCINS(02)'.
perform bdc_field using 'FPLTD-SELKZ(02)'
'X'.
else.
perform bdc_dynpro using 'SAPLV60F' '4001'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'RV60F-FAKWR(01)'.
perform bdc_field using 'RV60F-FAKWR(01)'
ITABh-AUTWR.
perform bdc_dynpro using 'SAPLV60F' '4001'.
perform bdc_field using 'BDC_OKCODE'
'=CCMA'.
perform bdc_field using 'BDC_CURSOR'
'FPLTC-CCINS(01)'.
perform bdc_field using 'FPLTD-SELKZ(01)'
'X'.
endif.
perform bdc_dynpro using 'SAPLV60F' '0200'.
perform bdc_field using 'BDC_CURSOR'
'FPLTC-AUTWR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'FPLTC-AUNUM'
'111'.
perform bdc_field using 'FPLTC-AUTWR'
ITABh-AUTWR.
perform bdc_dynpro using 'SAPLV60F' '0200'.
perform bdc_field using 'BDC_CURSOR'
'FPLTC-AUNUM'.
perform bdc_field using 'BDC_OKCODE'
'=BACK'.
perform bdc_dynpro using 'SAPLV60F' '4001'.
perform bdc_field using 'BDC_OKCODE'
'=S\BACK'.
perform bdc_field using 'BDC_CURSOR'
'FPLTC-CCINS(05)'.
perform bdc_dynpro using 'SAPMV45A' '4001'.
perform bdc_field using 'BDC_OKCODE'
'=SICH'.
perform BDC_TRANSACTION using 'VA02'.
ENDLOOP.
perform close_group.
Similar Messages
-
Custom screen for Payment card information in Sales Order
Hi All,
I want to know if its possible to develop a custom screen to accept multiple payment card information in Additional data tab and save it in normal payment card information at the time of saving sales order. This sounds little
NileshHi Nilesh,
Please, see SAP Note 914603 - FAQ/Collective note for payment cards (Consulting/modif). Here you have the relevant notes related with this topic, so, in point 4, the note says:
4. Payment cards in the order (with billing plan)
- 914811 FAQ: Authorisation Problems - Why?
- 915193 No authorization in the order
- 313416 Installment plan payment with payment cards
- 361790 No Authorization or only pre-authorization executed
- 701569 Incorrect value to be authorized in the order
I hope this helps you
Regards
Eduardo -
Payment card mandatory in sales order
Hi friends,
I want to make payment card filed mandatory when we enter some group of customers in sales order. We normally use the same sales order type for all the customers & when some particular set of customers entered in sales order we need to make the payment card field as mandatory to fill out.
Can we relate payment terms for making payment card mandatory in sales order or any userexit around.
Thanks,
Sree.ManamHi manam narayana
Either you need to have a separate sales document type , but with the same sales document type OR ,it is not possible.So if you want to make it mandatory payment card field mandatory then first of all copy document type OR to ZOR . Now use transaction variants using t.code SHD0 and there give document type ZOR and business object as BUS2032.and make the feild payment cards as required .
Now create the sales order using document type ZOR for the customers for whom payment cards should be mandatory.
But with the same document type i think it is not possible.Because if you make this field mandatory it will affect to all customers
Regards
Srinath -
Payment Card Info for sale order with BAPI_BUSPROCESSND_CREATEMULTI
hi all
i am trying to create a sales order using BAPI_BUSPROCESSND_CREATEMULTI
and i am able to create an order successfully without any problem.
the order is being generated. I am trying to input
the payment card details to the BAPI_BUSPROCESSND_CREATEMULTI in
PAYPLAN & PAYPLAN_DATE tables of the BAPI.
I also used CRM_ORDER_READ report to see how these tables are being filled
and based on that i had filled the payment card details in BAPI_BUSPROCESSND_CREATEMULTI
but still ..i see the order being generated but dont see any payment card information
being poulated in it.
If you have any idea how i should fill the PAYPLAN, PAYPLAN_DATE
tables and their respective input fields..please kindly help
i tried all possible ways and could not get a solution
Regards,
Jessica SamHi Richard,
So does this mean that i'd be able to capture all the data that is being determined after i make the call to this BAPI whithout saving it. Well.. I just want to simulate as it is happening in SAP.. i.e we enter the sold to party and hit 'enter' and all the data should be determined..and at this point i should read this data.
Could you let me know if this could be done.
Thanks,
Sahil -
SD Payment card deletion in Sales order (Standard fucntion?)
Hi all,
I have this below scenario regarding updating of Payment Card in a sales document (Header level)
Requirement is to need to be able to add/delete a payment card when an cusotmer does it online.
An customized RFC(Z_RFC_1)is called form the outer application RFC is called which internally calls
Z_RFC_1 internally calls SD_SALES_HEADER_MAINTAIN.
Here in SD_SALES_HEADER_MAINTAIN is a structure FXZAKAKOM. Here I am passing
I have the following information to pass.
TYPZM Means of payment for classifying payment card plan lines
CCINS Payment cards: Card type
CCNUM Payment cards: Card number
FKSAF Billing status for the billing plan/invoice plan date
UPDKZ Update indicator
When I send UPDKZ = u2018Iu2019 a payment card is created for that sales order.
Tables: FPLA, FPLT, FPLTC. (Tables for payment card).
Linked to VBAL-RPLNR
But when I wan to delete a card and I send u2018Du2019 in field FXZAKAKOM-UPDKZ (SD_SALES_HEADER_MAINTAIN). It does not work.
After debugging I found that I can delete the payment cards by using function BILLING_SCHEDULE_SAVE. But here the problem is the link in VBAK-RPLNR does not get updated. Hence I have to clear VBAK-RPLNR using a UPDATE statement. (Which is not advised).
Irrespective of the above scenario can any one let me know how a payment card can be deleted from a sales order using a standard function module.
Note: Currently I am using SD_SALES_HEADER_MAINTAIN.
Thanks in advance.
KiranHi manam narayana
Either you need to have a separate sales document type , but with the same sales document type OR ,it is not possible.So if you want to make it mandatory payment card field mandatory then first of all copy document type OR to ZOR . Now use transaction variants using t.code SHD0 and there give document type ZOR and business object as BUS2032.and make the feild payment cards as required .
Now create the sales order using document type ZOR for the customers for whom payment cards should be mandatory.
But with the same document type i think it is not possible.Because if you make this field mandatory it will affect to all customers
Regards
Srinath -
Payment card details to Sales Order
Hi,
I have created the customer master and entered the payment card details. Could you please let me know how to get it copied to the sales order?
Thanks & Regards,
KeshiniHi
See Note 914603 - FAQ/Collective note for payment cards (Consulting/modif). Be careful with legal requirements related with encryption of this data in sales documents and master data. (see 836079 FAQ: Credit card encryption and master data)
Regards
Eduardo
Edited by: E_Hinojosa on Feb 15, 2011 10:10 AM -
Update payment card details for sales order
Hi all,
Is there any function module or bapi which can be
used to update the payment card details for a sales order
The bapi_salesorder_creatfromdat2 is having the structure
CCARD which takes in this details , but what I really want is to change the already created sales order. The bapi for sales order change is not having any structure which allows passing this details.
Please can anybody give some inputs on it.
Regards,
Shibu Mathew.Hi Anurag,
Thank you very much for the answer..
I too found it as i was digging through the
BAPI_SALESORDER_CHANGE.
One's again thanks for the solution.
Regards,
Shibu Mathew. -
Debit side Down Payment Chain Link to Sales Order
Hi,
I have activated EA-FIN for capturing customer retention amount. Durin creation of debit side down payment chain system asks for a sales contract number. Once the document is saved system generates the invoice with retention amount on spl GL.
This invoice is not reflected in the document flow of sales order. Let me know if this can be possible link Debit side Down Payment Chain to sales order?
Regards,
Ajay GupteDear ,
about my Q2: I want to change Line item number of sales order after posting customer down payment.
Have you looked Q1 : that sytem did not asked to enter line item number of sales order at the time of posting down payment -
Down payment with reference to sales order only
We are posting Customer Down payment w.r.t Sales order number with line item number. How come we enter sales order number only without line item number at the time of down payment.
Q2- After the down payment posting F-29 , how its possible to change the line item of sales order number?Dear ,
about my Q2: I want to change Line item number of sales order after posting customer down payment.
Have you looked Q1 : that sytem did not asked to enter line item number of sales order at the time of posting down payment -
Customer Down Payment w.r.t sales order only
Q1- We are posting Customer Down payment w.r.t Sales order number with line item number. How come we enter sales order number only without line item number at the time of down payment.
Q2- After the down payment posting F-29 , how its possible to change the line item of sales order number?Hi,
For this down payment invoice,we are using billing plan at the sales document item level.
Goto the T.Code "VA02".Enter the sales order number.Enter.
Goto Item details.Goto billing plan tab.Remove the billing block for the down payment item.And maintain the billing block for other items.
Goto the T.Code "VF01" and enter the sales order number.It will take that down payment item.
Save.
Next step is to make payment.It can be done either by using the T.Code "F-28" by selecting the "Special G/L indicator" as "F" or by using the T.Code "F-29" too.
After creating the down payment,we can change item quantity and price too.But you cannot change the down payment item in billing plan.
Regards,
Krishna. -
Unwanted printing of advanced payment when printing a sales order or pick
It will be great to have an option of disabling the automatic printing of the advanced payment incoming payment when printing a sales order or invoice.
The option is currently not available on the document printing options.No print sequence for sales order is setup.
But even before on 2007 version, it was SAP default to print always the incoming payment of an advanced payment on every sales order or invoice. -
Payment methods in the sales order
Hi Gurus,
How can we indicate the payment methods in the sales order.
Thanks for your quick answer.Hi,
Payment method can be found in CMR>Company Code Data>Payment Transations tab: Here you can specify the payment method {incoming/outgoing}
> List of the Payment Methods to be Considered
List of payment methods which may be used in automatic payment transactions with this customer/vendor if you do not specify a payment method in the item to be paid.
If you do specify a particular payment method in the item to be paid, this specification has priority over the specifications in the master record. You may also specify payment methods in the item which are not listed in the master record.
Hope this will help you in some extent.
Hrishi -
Passing text information from sales order to purchase requisition
Hi
My requirement is in third party processing. I want to pass line time text in sales order to the purchase requisition created in a third party processing.
My question : is it possible in standard config setting?
If not, Is there any user exit to address this
please send us valuable inputs
Thanks
Sriram.Dear Sriram,
Try this,
Go through this IMG path do the required settings
SPRO>IMG>Material Management>Purchasing>Purchase Requisition-->Texts for Purchase Requisitions.
-->Define Text Types here you can define the Text type same as sales order Text type for Purchage requesition .
-->Define Copying Rules -->Here you select the Text type(Newly defined) to which text type you want to copy the sales order text then click on Text Linkage -->New Entries in the New entries screen you enter
Sequence
Source Object as Sales order
Source Text
Fix as blank -Text automatically adopted in target object
Finally save the settings.
Now you create third party sales order system will copy the sales order text to the Purchase requesition
I hope this will help you,
Regards,
Murali. -
Do not change the payment term created a Sales Order with reference
Hi Gurus,
Do not change the payment term created a Sales Order with reference to a contract where the payer of the change in Sales Order.Hello ,
As per my understanding , you do not want the payment terms to be changed even if the payer partner function is changed ,
as standard sap redetermines the payment terms with change in partner function, you may use the exit
USEREXIT_MOVE_FIELD_TO_VBAK- header level
USEREXIT_MOVE_FIELD_TO_VBAP- Item level
in this you could write a small code which will not change the payment terms when payer is redetermined
hope this helps
Thanks
akasha -
Add new payment term base on sales order contract date and shipment date
Dear Sir/Madam,
My company need to create new payment term base on sales order's contract date and shipment date.
the first time is 30% made in T/T within 30days from contract signed date.
the second time is 70% made in T/T before shipment.
I don't know how to configuration this payment term base on that both date, who can tell me ,thanks very much!
Best Regards
Danny ZhangHi,
You have to define the PAYMENT TERMS as per days and Percentage.
Define the Payment terms in the transaction OBB8 and assign this payment terms in the CUSTOMER MASTER and will be copied to the SALES ORDER from the customer master
In the MATERIAL MASTER in the SALES ORG 1 view you have to check the field CAHS DISCOUNT In the Pricing procedure you can defin the CASH DISCOUNT condition type ( in standard there are two SKTV & SKTO)
Now process the sales order and check
regards,
Maybe you are looking for
-
Adding a customer solid to the list of Solids in Generators
Hi all I need to define an RGB solid colour to my list of solids. I can define it under 'Colour Customer Parameters but is it possible to save it with a name please? All hep as always most gratefully received. Cheers Richard
-
Migrate from Crystal Report XI R2 to Business Objects XI R2
Hello friends, As per end of licence life cycle for Crystal report, we need to migrate our 30 crystal reports to BO xi r2. First thing i need to ask is that ...is this possible to migrate from Crystal report XI R2 to BO xi R2 ? If yes than where i ca
-
Why can't I make comments and highlight text in a document?
Why can't I make comments and highlight text in a document?
-
WEB PL/SQL Generated forms
Have anyone tried to "play" with this code, or rather.... the .TPX files in the $ORA_HOME/CGENW61/CVWTPL directory? I have a need to "customize" several aspects of the generated code. Anyone?
-
Different ways of starting external java activity agent?
Hi All, Can any one tell me different of ways of starting Oracle Workflow 2.6.4.0.0 JAVA Function Activity Agent in Solaris . The one option i know is using shell script wfjvlsnr.csh.This option requires connection string to be given. But according t