Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all 8332 articles
Browse latest View live

Issue while creating purchase Info Record through BDC

$
0
0

Hi All,

 

I am trying to create Purchase Info Records using BDC.

But for some records, Net Price is non editable and value coming as 0.00

and an error message is coming "Field EINE-NETPR is not an inout field" while i am trying to fill it.

(Screen field for netpr is reuired.)

Please help me with this issue.

 

TIA.

 

Regards,

Malvi Aggarwal


Base quantity, fixed lot size not updating using BAPI_MATERIAL_SAVEDATA?

$
0
0

Hi all,

 

I used BAPI_MATERIAL_SAVEDATA to update MARA and MARC table but base quantity (BASMG) and Fixed lot size (BSTFE) are not getting update in MARC table. I have passed both the value to bapi_marc and bapi_marcx tables . but only these two are not updating rest all are getting updated.

 

Regards,

SAP Script format currency

$
0
0

Hi,

 

 

I am using sap script and i use

 

&KOMK-FKWRT(I13)& to write total

 

i am getting 17719.020,00 and i would like to receive 17.719.020,00

 

I cheked user settings and are 1.234.567,00

 

I check currency settings too

 

How can i change this?

 

 

Thank you and best regards

 

João Lages Fernandes

BAPI_ACC_DOCUMENT_POST Error

$
0
0

Hi All,

We want to post the Enter G/L Account Posting / Customer Payment /F-02 through BAPI_ACC_DOCUMENT_POST. It is getting posted, but with different posting keys. So after searching in scn we have implemented BADI and passed Posting keys through Extension2 , now posting keys are getting passed internally but now we are getting the below error. We are on ECC5.0

 

Field Profit Ctr is a required field for G/L account 1000 105467


Below is the Input which we are passing, Please suggest.

 

DOCUMENTHEADER

BUS_ACT

RFBU

USERNAME

IT_SOB

HEADER_TXT

HEADER_TXT

COMP_CODE

1000

DOC_DATE

  1. 01.04.2015

PSTNG_DATE

  1. 01.04.2015

DOC_TYPE

DZ

REF_DOC_NO

REF_DOC_NO

 

ACCOUNTGL

ACCOUNTRECEIVABLE

ITEMNO_ACC

1

ITEMNO_ACC

2

GL_ACCOUNT

206880

CUSTOMER

16946

ITEM_TEXT

ITEM_TEXT

COMP_CODE

1000

ACCT_TYPE

S

ITEM_TEXT

ITEM_TEXT

COMP_CODE

1000

SP_GL_IND

A

PSTNG_DATE

  1. 01.04.2015

PROFIT_CTR

DP13

DE_CRE_IND

S

 

CURRENCYAMOUNT

ITEMNO_ACC

1

ITEMNO_ACC

2

CURRENCY

INR

CURRENCY

INR

AMT_DOCCUR

1,000.00

AMT_DOCCUR

1,000.0000-

 

EXTENSION2

STRUCTURE

POSTING_KEY

STRUCTURE

POSTING_KEY

VALUEPART1

1

VALUEPART1

2

VALUEPART2

40

VALUEPART2

19

Display Pushbuttons in Table Control Dynamically

$
0
0

Hi experts ,

 

I have a requirement where i display a table control with coloum heading and pushbuttons only.

 

For example.

 

mondaytuesdaywednesday

[pushbutton] [pushbutton] [pushbutton]

 

This is nothing but column number changes based on day.

 

But main doubt is how to display a pushbutton on a table container(not manually as my code has to be dynamic).

 

Thanks in advance

SSK

How to use interfaces in Smartforms when using Final Internal Table in Driver Program?

$
0
0

Hello Experts

 

 

I have the following requirement in smartforms.

 

 

1. Need to design an invoice with the address details of the customer (KUNNR, LAND1, NAME1, NAME2, ORT01 and PSTLZ). This information needs to appear in the address window.

 

 

2. In the main window, I need to use the VBELN, MATNR, ARKTX, NETWR and KWMENG.

 

 

The Parameter for selection is the Sales Order Number (VBELN). When VBELN is entered, Address Window should be filled with fields mentioned in 1 and order related details mentioned in 2.

 

 

I created a final internal table and transferred  all the fields to the IT_FINAL. Plz see the coding below:

 

 

*&---------------------------------------------------------------------*

*& Report  ZPANKAJ_SMARTFORM2

*&

*&---------------------------------------------------------------------*

*&

*&

*&---------------------------------------------------------------------*

 

 

REPORT  ZPANKAJ_SMARTFORM2 NO STANDARD PAGE HEADING.

 

 

 

TYPES: BEGIN   OF   TY_VBAK,

       VBELN   TYPE VBAK-VBELN,

       KUNNR   TYPE VBAK-KUNNR,

       END     OF   TY_VBAK,

 

 

 

 

       BEGIN   OF   TY_VBAP,

       VBELN   TYPE VBAP-VBELN,

       MATNR   TYPE VBAP-MATNR,

       ARKTX   TYPE VBAP-ARKTX,

       NETWR   TYPE VBAP-NETWR,

       KWMENG  TYPE VBAP-KWMENG,

       END     OF   TY_VBAP,

 

 

       BEGIN OF   TY_KNA1,

       KUNNR TYPE KNA1-KUNNR,

       LAND1 TYPE KNA1-LAND1,

       NAME1 TYPE KNA1-NAME1,

       NAME2 TYPE KNA1-NAME2,

       ORT01 TYPE KNA1-ORT01,

       PSTLZ TYPE KNA1-PSTLZ,

       END   OF   TY_KNA1,

 

 

 

 

 

       BEGIN   OF    TY_FINAL,

       VBELN   TYPE  VBAP-VBELN,

       KUNNR   TYPE  VBAK-KUNNR,

       MATNR   TYPE  VBAP-MATNR,

       ARKTX   TYPE  VBAP-ARKTX,

       NETWR   TYPE  VBAP-NETWR,

       KWMENG  TYPE  VBAP-KWMENG,

       LAND1   TYPE  KNA1-LAND1,

       NAME1   TYPE  KNA1-NAME1,

       NAME2   TYPE  KNA1-NAME2,

       ORT01   TYPE  KNA1-ORT01,

       PSTLZ   TYPE  KNA1-PSTLZ,

       END     OF    TY_FINAL.

 

 

 

 

 

PARAMETERS: P_VBELN TYPE VBAK-VBELN.

 

 

 

DATA: IT_VBAK TYPE STANDARD TABLE OF TY_VBAK,

      IT_VBAP TYPE STANDARD TABLE OF TY_VBAP,

      IT_KNA1 TYPE STANDARD TABLE OF TY_KNA1,

      IT_FINAL TYPE STANDARD TABLE OF TY_FINAL,

      WA_VBAK TYPE TY_VBAK,

      WA_VBAP TYPE TY_VBAP,

      WA_KNA1 TYPE TY_KNA1,

      WA_FINAL TYPE TY_FINAL.

 

 

 

DATA: LV_FNAME TYPE TDSFNAME.

 

 

 

AT SELECTION-SCREEN.

 

 

 

  SELECT VBELN

         KUNNR

         FROM VBAK

         INTO TABLE IT_VBAK

         WHERE VBELN EQ P_VBELN.

 

 

 

  IF SY-SUBRC NE 0.

 

    MESSAGE 'ENTER A VALID VALUE' TYPE 'E'.

  ENDIF.

 

 

 

  SELECT VBELN

         MATNR

         ARKTX

         NETWR

         KWMENG

         FROM VBAP

         INTO TABLE IT_VBAP

         WHERE VBELN EQ P_VBELN.

 

 

 

 

 

START-OF-SELECTION.

 

 

 

  IF NOT IT_VBAK IS INITIAL.

    SELECT KUNNR

           LAND1

           NAME1

           NAME2

           ORT01

           PSTLZ

           FROM KNA1

           INTO TABLE IT_KNA1

           FOR ALL ENTRIES IN IT_VBAK

           WHERE KUNNR = IT_VBAK-KUNNR.

 

 

  ENDIF.

 

 

 

  LOOP AT IT_VBAP INTO WA_VBAP.

  

IF SY-SUBRC EQ 0.

      MOVE: WA_VBAP-VBELN TO WA_FINAL-VBELN,

            WA_VBAP-MATNR TO WA_FINAL-MATNR,

            WA_VBAP-ARKTX TO WA_FINAL-ARKTX,

            WA_VBAP-NETWR TO WA_FINAL-NETWR,

            WA_VBAP-KWMENG TO WA_FINAL-KWMENG.

    ENDIF.

 

 

 

 

 

    READ TABLE IT_VBAK INTO WA_VBAK  WITH KEY VBELN = WA_VBAP-VBELN.

    IF SY-SUBRC EQ 0.

      MOVE: WA_VBAK-KUNNR TO WA_FINAL-KUNNR.

    ENDIF.

 

 

 

    READ TABLE IT_KNA1 INTO WA_KNA1 WITH KEY KUNNR = WA_VBAK-KUNNR.

    IF SY-SUBRC EQ 0.

 

 

      MOVE:   WA_KNA1-LAND1 TO WA_FINAL-LAND1,

              WA_KNA1-NAME1 TO WA_FINAL-NAME1,

              WA_KNA1-NAME2 TO WA_FINAL-NAME2,

              WA_KNA1-ORT01 TO WA_FINAL-ORT01,

              WA_KNA1-PSTLZ TO WA_FINAL-PSTLZ.

    ENDIF.

 

 

 

APPEND WA_FINAL TO IT_FINAL.

CLEAR: WA_VBAK, WA_VBAP, WA_KNA1, WA_FINAL.

 

 

ENDLOOP.

 

 

Note: When the program was ran in debugging mode, all the fields were in IT_FINAL.

 

 

Now, in the smartform, when I enter IT_FINAL  under interfaces, I get an error saying the IT_FINAL is not a structure. I tried all possible ways, trial and error methods but have not been successful. I have also tried using the Global Definitions but to not success.

 

Can anyone tell me if how to use the interfaces or the global definitions if using the concept of Final Internal Table in smartforms as I have been told that it is the best approach.

 

Looking forward to your help.

 

Regards

Bidyut

supressing print preview list in ALV tree

$
0
0

I have a alv tree report output, when i press print preview button

a list display is generated that can be downloaded to local file,

Now i want to supress the list display and directly download the contents to local file. I like to perform this fuctionality with

Custom button on alv tree toolbar.

 

Can anyone help me.

Want to upload a data of Online examination questions to the Database but i have no idea?

$
0
0

Want to upload a data of Online examination questions to the Database but i have no idea pls let me know how can i upload the data to the database and what are the tables i have to used?

 

thanks


adding Custom filed in HCM Process and Forms...?

$
0
0

Hi..SAP Techies..!

 

i have requirement to add custom field in requisition form.

For this i have taken z copy for process and form scenarios And i have taken z copy of form and added required field.

 

Now my concern is - how to achieve the binding for custom field in the copied form and how to maintain(capture values) for such field

in approval process.

 

 

 

Regards,

Mahesh

Chnaged content of ALV after sort function

$
0
0

How to change the data of the internal table displayed in ALV after Sort event in function module 'REUSE_ALV_GRID_DISPLAY'

Errors with BAPI_ACC_DOCUMENT_CHECK

$
0
0

Dear Experts,

 

I've been having errors with my codes for executing BAPI_ACC_DOCUMENT_CHECK.

Eventually, I will also need to run the same codes for BAPI_ACC_DOCUMENT_POST too.

 

Here is how I have populated the input parameters for the BAPI_ACC_DOCUMENT_CHECK:-

 

1) Input parameter, DOCUMENTHEADER:-

 

USERNAME = 'SY-UNAME'

HEADER_TXT = 700/003350

COMP_CODE = 8000

DOC_DATE = 05.03.2015

PSTNG_DATE = 19.01.2015

 

(Other fields are left blank here.)

 

2) Input parameter, ACCOUNTGL:-

 

ITEMNO_ACC = 1

ACCT_TYPE = D

FIS_PERIOD = 01

FIS_YEAR = 2015

CUSTOMER = 10005

 

(Other fields are left blank here.

Only 1 data record is populated for this internal table.)


Executing the BAPI with just these two input parameters above will not return any error messages at all.

 

3) Input parameter, CURRENCYAMOUNT:-

 

ITEMNO_ACC = 1

CURR_TYPE = 00

CURRENCY = GBP

AMT_DOCCUR = 40.2500

 

(Other fields are left blank here.

Only 1 data record is populated for this internal table.)

 

But, when I add the third input parameter as shown above, these error messages will be returned:-


RW 609: Error in document: BKPFF

RW 022: FI/CO interface: Balance in transaction currency

 

If I change the data value for CURRENCYAMOUNT-CURR_TYPE to 10, these error messages will be returned:-

 

RW 609: Error in document: BKPFF

RW 021: FI/CO line item without transaction currency information

 

P/S:

I have also tried adding another data record to the input parameter, CURRENCYAMOUNT as follows, but the same errors still persist:-

 

ITEMNO_ACC = 2

CURR_TYPE = 00

CURRENCY = GBP

AMT_DOCCUR = 40.2500-

 

How may I pass this BAPI execution successfully, with currency amounts?

 

Please do advise. Appreciate any inputs at all.

 

Thanks in advance.

 

 

Deborah

How to delete all objects of one workbench transport request?

$
0
0

Hi All,

 

help is needed on the following subject: I would like to delete all SAP objects, which are locked in the same transport. There are few hundreds of the objects and this is time consuming if to delete them one-by-one, is there any way to reduce the effort?

 

Thank you and best regards,

Alex

Passing Reason Code by using bapi BAPI_ACC_DOCUMENT_POST

$
0
0

I am using BAPI_ACC_DOCUMENT_POST, i am getting below error

Field Reason code is a required field for G/L account

 

i googled the same error may time and every on suggest to use BADI ACC_DOCUMENT and  Create and pass the structure

please guide me how can i pass the same using BAPI_ACC_DOCUMENT_POST

 

I need to pass an additional value REASON CODE (RSTGR) in BSEG.

 

Please guide me step by step on how I can pass entered value in table EXTENSION2 into BSEG.

 

 

Many Thanks.

BAPI_ACC_DOCUMENT_POST for asset posting

$
0
0

Hi Gurus!

I’m trying to use BAPI_ACC_DOCUMENT_POST to post Vendor invoices (document type KR) and vendor credit memos (document type KG).

I’m passing the following parameters to the bapi for KG postings:

 

HEADER

BUS_ACT:  RFBU

USRNAME:  XXXXXXX

COMP_CODE:  1012      

DOC_DATE: 31.12.2014

PSTNG_DATE: 31.12.2014

FISC_YEAR: 2014

FISC_PERIOD: 12

DOC_TYPE: KG

REF_DOC_NO: TEST

 

ACCOUNTGL

ITEMNO_ACC: 0000000002

GL_ACCOUNT: 4240000000

ACCT_TYPE: A

DOC_TYPE: KG

COMP_CODE: 1012

FIS_PERIOD: 12

FISC_YEAR: 2014

PSTNG_DATE: 31.12.2014

ASSET_NO: 1000006421

SUB_NUMBER

CS_TRANS_T:105

RES_DOC: 1751403327

RES_ITEM:001


ACCOUNTPAYABLE

ITEMNO_ACC: 0000000001

VENDOR_NO: 1000008095

COMP_CODE: 1012

PMNTTRMS: Z000

BLINE_DATE: 31.12.2014

SP_GL_IND: G



CURRENCYAMOUNT

ITEMNO_ACC: 0000000001

CURRENCY: EUR

AMT_DOCCUR: 1

 

ITEMNO_ACC: 0000000002

CURRENCY: EUR

AMT_DOCCUR: 1-




As a result, I get both these errors:

 

AAPO-161 Accounting transaction category RFBURFBU000000000000 is not defined

AA-326 Enter a transaction type

 

I went to tables TABWD and TABWD_VID, created the entry for this category with movement type 105.

 

After submitting the BAPI again, I got these errors:

 

AAPO-176 Transaction type 105 cannot be used for activity ‘Entrar nota de crédito no exercício da fatura'

AA-326 Enter a transaction type

 

 

I’m doing this so I can post FI documents regarding Asset.

As anyone gone through this?
Am I missing some table entry?

 

 

Thanks

Read_text language independent

$
0
0

Hi ,

 

 

We are using read_text for reading shipping instructions.

 

If the ship to party language maintained is 'DE' and if my shipping instructions maintained in 'FI' then requirement is read_text should be language independent.

 

 

1 so how can we bypass the language in read_text since we know that language is mandatory

2) Could it be possible using /: INCLUDE   .


workflow in sap inbox tcode as link

$
0
0

Hi,

 

I am new to workflow,

when user click msg in sap inbox reset reject pr should happen and me54n tcode should open pls help

Budget exceeded error

$
0
0

Hi,

 

When I execute tcode  CO40 (production order) and type production order and then click on enter then i will getting

an error

Message no. BP601

Diagnosis

 

Payment budget for WBS element Q/0001419/0010 on Order %00000000001 been exceeded

 

This error is not in OBMSG and OBA5. Can I go through coding?

Please tell me how to convert this error into warning?


Multiple Header's in ALV Grid display- OOPS

$
0
0

Hi Folks,

 

Is there any possibility of displaying Multiple headers in ALV Grid display. I have a requirement to display multiple headers in the ALV Grid and tried using Factory methods but in vain.

FM: REUSE_ALV_GRID_DISPLAY

 

Multiple Header ALV GRID.png

 

Any suggestions please ??

 

 

Thanks,

Sujay V

ATC not showing Security vulnerabilities

$
0
0

Hi All,

 

We are in the process of activating Code vulnerability analyzer. The required notes and configs are in place and when we run a test program to let it find security errors, we have the below options

 

on running SLIN, it gives two options: Run selected check  and  Run ATC relevant check. On running ATC relevant checks, it points rightly to a security issue in the code.

 

Now, I run directly ATC check. However that does not return any security issue but says 'The objects passed the chosen checks without any finding'.

 

Can anyone please suggest if I am missing any config to set up ATC checks. While SLIN shows the security issues which means CVA is properly activated, not sure why ATC run does not return anything. It should also point to the same security threat.

BTE 00501014 : VF01

$
0
0

Hi Experts,

 

 

I am trying to capture some data to ztables during billing of SO (VF01)  , so tried BTE in debugging I am getting 3 BTE's

                         1.   00001025

                         2.   00001050

                         3.   00501014 (this is required BTE)

 

out of the above 00501014 has all the required structures which i want in ztables. Tried to implement BTE in z_sample_interface_00501014 put a

debugg. but still it is not going to  debug point during VF01 ,I have no idea what went wrong .


Though this z_sample_interface_00501014 is available in va01/02, vkm3 but not in vF01.


Please guide me to check the missing steps .. thanks in advance.



Drashti

Viewing all 8332 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>